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

Install package failed #14

Closed
lexuantunght opened this issue Feb 14, 2022 · 3 comments
Closed

Install package failed #14

lexuantunght opened this issue Feb 14, 2022 · 3 comments

Comments

@lexuantunght
Copy link

lexuantunght commented Feb 14, 2022

Please check this issue, reproduce steps:

  1. npx create-react-app@latest my-chess
  2. cd my-chess
  3. npm i react-chessboard

Error details:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! peer react@"" from @testing-library/react@12.1.2
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"^12.1.2" from the root project
npm ERR! peer react@"17.0.2" from react-dom@17.0.2
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@"
" from @testing-library/react@12.1.2
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"^12.1.2" from the root project
npm ERR! react-dom@"^17.0.2" from the root project
npm ERR! 1 more (react-chessboard)
npm ERR! 4 more (react-scripts, the root project, react-chessboard, react-dnd)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1" from react-dnd-preview@6.0.2
npm ERR! node_modules/react-dnd-multi-backend/node_modules/react-dnd-preview
npm ERR! react-dnd-preview@"^6.0.2" from react-dnd-multi-backend@6.0.2
npm ERR! node_modules/react-dnd-multi-backend
npm ERR! react-dnd-multi-backend@"^6.0.2" from react-chessboard@1.0.4
npm ERR! node_modules/react-chessboard
npm ERR! react-chessboard@"*" 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.

@Clariity
Copy link
Owner

This is an issue with a dependency of our package called react-dnd-multi-backend, an issue has been raised

LouisBrunner/dnd-multi-backend#76

Solution for now is to use --force

Closing this issue as it is similar to #4

@Clariity
Copy link
Owner

Attempting internal fix with new release

@Clariity Clariity reopened this Feb 14, 2022
@Clariity
Copy link
Owner

Hopefully fixed in https://github.com/Clariity/react-chessboard/releases/tag/v1.0.5

Please try again and confirm

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