Updates the dependencies to avoid this error when trying to run yarn watch:
dev/electron/bootc main ✔ 1m
▶ yarn watch
yarn run v1.22.19
$ concurrently "yarn --cwd packages/frontend watch" "yarn --cwd packages/backend watch"
/Users/cdrage/syncthing/dev/electron/bootc/node_modules/cliui/build/index.cjs:291
const stringWidth = require('string-width');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/cdrage/syncthing/dev/electron/bootc/node_modules/string-width/index.js from /Users/cdrage/syncthing/dev/electron/bootc/node_modules/cliui/build/index.cjs not supported.
Instead change the require of index.js in /Users/cdrage/syncthing/dev/electron/bootc/node_modules/cliui/build/index.cjs to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/Users/cdrage/syncthing/dev/electron/bootc/node_modules/cliui/build/index.cjs:291:21) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v20.11.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
chore: update dependencies
What does this PR do?
Updates the dependencies to avoid this error when trying to run
yarn watch
:Screenshot / video of UI
N/A
What issues does this PR fix or reference?
Compiling error
How to test this PR?
yarn watch
works fineSigned-off-by: Charlie Drage charlie@charliedrage.com