Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with npm 7 #733

Closed
jlkiri opened this issue Sep 25, 2020 · 1 comment
Closed

Incompatibility with npm 7 #733

jlkiri opened this issue Sep 25, 2020 · 1 comment

Comments

@jlkiri
Copy link

jlkiri commented Sep 25, 2020

microbundle is not compatible with npm 7 (currently beta) in "normal" mode which respects peer deps.

$ npm i microbundle -D
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @rollup/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/rollup
npm ERR!   rollup@"^1.32.1" from [email protected]
npm ERR!   node_modules/microbundle
npm ERR!     dev microbundle@"*" from the root project
npm ERR!   peer rollup@"^1.20.0||^2.0.0" from @rollup/[email protected]
npm ERR!   node_modules/@rollup/plugin-alias
npm ERR!     @rollup/plugin-alias@"^3.1.1" from [email protected]
npm ERR!     node_modules/microbundle
npm ERR!       dev microbundle@"*" from the root project
npm ERR!   6 more (@rollup/plugin-babel, @rollup/plugin-json, ...)
npm ERR!
npm ERR! Could not add conflicting dependency: [email protected]
npm ERR! node_modules/rollup
npm ERR!   peer rollup@"^2.3.4" from @rollup/[email protected]
npm ERR!   node_modules/@rollup/plugin-commonjs
npm ERR!     @rollup/plugin-commonjs@"^13.0.0" from [email protected]
npm ERR!     node_modules/microbundle
npm ERR!       dev microbundle@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

This is because microbundle uses rollup 1.32.1. @rollup/plugin-commonjs which microbundle also uses has rollup ^2.3.4 as its peer.

@developit
Copy link
Owner

This is fixed in npm 7.0.7, and will be addressed in Microbundle by #738.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants