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

dependency problems when creating a new react app #280

Open
JourneyToSilius opened this issue Sep 9, 2023 · 0 comments
Open

dependency problems when creating a new react app #280

JourneyToSilius opened this issue Sep 9, 2023 · 0 comments

Comments

@JourneyToSilius
Copy link

npx create-react-app troika
npm install --save three

npm install --save troika-core

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: troika-core@0.48.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   peer react@"^18.0.0" from @testing-library/react@13.4.0
npm ERR!   node_modules/@testing-library/react
npm ERR!     @testing-library/react@"^13.4.0" from the root project
npm ERR!   peer react@"^18.2.0" from react-dom@18.2.0
npm ERR!   node_modules/react-dom
npm ERR!     peer react-dom@"^18.0.0" from @testing-library/react@13.4.0
npm ERR!     node_modules/@testing-library/react
npm ERR!       @testing-library/react@"^13.4.0" from the root project
npm ERR!     react-dom@"^18.2.0" from the root project
npm ERR!   2 more (react-scripts, the root project)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional react@"^16.5.2" from troika-core@0.48.0
npm ERR! node_modules/troika-core
npm ERR!   troika-core@"*" from the root project
npm ERR!   troika-core@"^0.48.0" from troika-3d@0.48.0
npm ERR!   node_modules/troika-3d
npm ERR!     troika-3d@"^0.48.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR!   peerOptional react@"^16.5.2" from troika-core@0.48.0
npm ERR!   node_modules/troika-core
npm ERR!     troika-core@"*" from the root project
npm ERR!     troika-core@"^0.48.0" from troika-3d@0.48.0
npm ERR!     node_modules/troika-3d
npm ERR!       troika-3d@"^0.48.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /home/xavier/.npm/_logs/2023-09-09T10_14_47_804Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/xavier/.npm/_logs/2023-09-09T10_14_47_804Z-debug-0.log
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