SyntaxError: The requested module 'execa' does not provide an export named 'default'
when installing dependency
#4655
Labels
duplicate
This issue or pull request already exists
Describe the bug
Ignoring the fact #4575 caused vite to be falsely reported as missing, I went ahead and asked for it to be installed.
I got an error:
I tracked it down to a bundled version of
@antfu/install-pkg
version 0.1.1, which at the time was using a different, older version ofexeca
that provided default exports. Since this dependency is bundled, it's using the same execa versionvitest
declares, and consequently, it errors out.Suggested fix:
Update
@antfu/install-pkg
which since then has been updated not to use default export in execa.Reproduction
System Info
System: OS: macOS 14.1.1 CPU: (8) arm64 Apple M2 Memory: 32.31 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.9.0 - /private/var/folders/3y/swkjq1x101b76mzjgt4pm2d80000gp/T/xfs-2ac5acc4/node Yarn: 4.0.2 - /private/var/folders/3y/swkjq1x101b76mzjgt4pm2d80000gp/T/xfs-2ac5acc4/yarn npm: 10.1.0 - /usr/local/bin/npm bun: 1.0.12 - ~/.bun/bin/bun Browsers: Chrome: 119.0.6045.199 Edge: 119.0.2151.97 Safari: 17.1
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: