Skip to content

Broken build with NPM 7 #11

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

Open
Serjlee opened this issue Jun 6, 2022 · 0 comments
Open

Broken build with NPM 7 #11

Serjlee opened this issue Jun 6, 2022 · 0 comments

Comments

@Serjlee
Copy link
Contributor

Serjlee commented Jun 6, 2022

If you try to use npm install with NPM 7 (default version for Node 16-LTS) and arduino/arc you'll get:

Expand error stack

16:53:23.032 | npm WARN ERESOLVE overriding peer dependency
-- | --
16:53:23.033 | npm WARN While resolving: [email protected]
16:53:23.033 | npm WARN Found: [email protected]
16:53:23.033 | npm WARN node_modules/react
16:53:23.033 | npm WARN   react@"^17.0.2" from the root project
16:53:23.034 | npm WARN   95 more (@arduino/arc, @bcmi-lab/space-select, @emotion/core, ...)
16:53:23.034 | npm WARN
16:53:23.034 | npm WARN Could not resolve dependency:
16:53:23.035 | npm WARN peer react@"^0.14.0 \|\| ^15.0.0 \|\| ^16.0.0" from [email protected]
16:53:23.035 | npm WARN node_modules/react-autosize-textarea
16:53:23.035 | npm WARN   react-autosize-textarea@"^7.1.0" from @arduino/[email protected]
16:53:23.035 | npm WARN   node_modules/@arduino/arc
16:53:23.035 | npm WARN
16:53:23.036 | npm WARN Conflicting peer dependency: [email protected]
16:53:23.036 | npm WARN node_modules/react
16:53:23.036 | npm WARN   peer react@"^0.14.0 \|\| ^15.0.0 \|\| ^16.0.0" from [email protected]
16:53:23.036 | npm WARN   node_modules/react-autosize-textarea
16:53:23.036 | npm WARN     react-autosize-textarea@"^7.1.0" from @arduino/[email protected]
16:53:23.036 | npm WARN     node_modules/@arduino/arc
16:53:23.037 | npm WARN ERESOLVE overriding peer dependency
16:53:23.037 | npm WARN While resolving: [email protected]
16:53:23.037 | npm WARN Found: [email protected]
16:53:23.037 | npm WARN node_modules/react-dom
16:53:23.038 | npm WARN   react-dom@"^17.0.2" from the root project
16:53:23.038 | npm WARN   14 more (@arduino/arc, @bcmi-lab/space-select, ...)
16:53:23.038 | npm WARN
16:53:23.038 | npm WARN Could not resolve dependency:
16:53:23.038 | npm WARN peer react-dom@"^0.14.0 \|\| ^15.0.0 \|\| ^16.0.0" from [email protected]
16:53:23.038 | npm WARN node_modules/react-autosize-textarea
16:53:23.039 | npm WARN   react-autosize-textarea@"^7.1.0" from @arduino/[email protected]
16:53:23.039 | npm WARN   node_modules/@arduino/arc
16:53:23.039 | npm WARN
16:53:23.039 | npm WARN Conflicting peer dependency: [email protected]
16:53:23.039 | npm WARN node_modules/react-dom
16:53:23.039 | npm WARN   peer react-dom@"^0.14.0 \|\| ^15.0.0 \|\| ^16.0.0" from [email protected]
16:53:23.039 | npm WARN   node_modules/react-autosize-textarea
16:53:23.040 | npm WARN     react-autosize-textarea@"^7.1.0" from @arduino/[email protected]
16:53:23.040 | npm WARN     node_modules/@arduino/arc
16:53:23.080 | npm ERR! code ERESOLVE
16:53:23.164 | npm ERR! ERESOLVE could not resolve
16:53:23.165 | npm ERR!
16:53:23.165 | npm ERR! While resolving: [email protected]
16:53:23.165 | npm ERR! Found: [email protected]
16:53:23.165 | npm ERR! node_modules/react
16:53:23.165 | npm ERR!   react@"^17.0.2" from the root project
16:53:23.165 | npm ERR!   peer react@"^17.0.2" from @arduino/[email protected]
16:53:23.165 | npm ERR!   node_modules/@arduino/arc
16:53:23.166 | npm ERR!     @arduino/arc@"^0.10.0" from the root project
16:53:23.166 | npm ERR!   94 more (@bcmi-lab/space-select, @emotion/core, ...)
16:53:23.166 | npm ERR!
16:53:23.166 | npm ERR! Could not resolve dependency:
16:53:23.166 | npm ERR! peer react@"^15.3.0 \|\| ^16.0.0-alpha" from [email protected]
16:53:23.166 | npm ERR! node_modules/react-virtualized
16:53:23.166 | npm ERR!   react-virtualized@"^9.22.3" from the root project
16:53:23.166 | npm ERR!
16:53:23.166 | npm ERR! Conflicting peer dependency: [email protected]
16:53:23.167 | npm ERR! node_modules/react
16:53:23.167 | npm ERR!   peer react@"^15.3.0 \|\| ^16.0.0-alpha" from [email protected]
16:53:23.167 | npm ERR!   node_modules/react-virtualized
16:53:23.167 | npm ERR!     react-virtualized@"^9.22.3" from the root project
16:53:23.167 | npm ERR!
16:53:23.167 | npm ERR! Fix the upstream dependency conflict, or retry
16:53:23.167 | npm ERR! this command with --force, or --legacy-peer-deps
16:53:23.167 | npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
16:53:23.168 | npm ERR!
16:53:23.168 | npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.
16:53:23.168 |  
</pre>

Suggested fix:
Ditch/upgrade abandonded/outdated dependencies

Suggested temporary fix:
Document this issue in the README, and suggest the use of the--legacy-peer-deps flag or legacy-peer-deps=true in .npmrc

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

1 participant