containers / podman-desktop-extension-bootc

Support for bootable OS containers (bootc) and generating disk images
Apache License 2.0
403 stars 13 forks source link

chore: update dependencies #610

Closed cdrage closed 1 month ago

cdrage commented 1 month ago

chore: update dependencies

What does this PR do?

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.

Screenshot / video of UI

N/A

What issues does this PR fix or reference?

Compiling error

How to test this PR?

yarn watch works fine

Signed-off-by: Charlie Drage charlie@charliedrage.com

cdrage commented 1 month ago

FYI we also pin strip-ansi to 6.0.1 due to this error: https://stackoverflow.com/questions/76753440/react-app-build-fails-with-err-require-esm with regards to it being fully ESM with 7.0.0