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

[Bug]: npm could not resolve dependency #3

Closed
1 task done
sergey-belous opened this issue Mar 17, 2024 · 2 comments
Closed
1 task done

[Bug]: npm could not resolve dependency #3

sergey-belous opened this issue Mar 17, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@sergey-belous
Copy link

What happened?

Can not create new project from npx create-react-app new-test-app --template complete-web-app
Could not resolve dependency.

Version

v1.1.15

What browsers are you seeing the problem on?

No response

Relevant log output

Creating a new React app in /home/sj/vscode/test-react-app/new-test-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template-complete-web-app...


added 1496 packages in 2m

259 packages are looking for funding
  run `npm fund` for details

Initialized a git repository.

Installing template dependencies using npm...
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/typescript
npm WARN   peer typescript@">= 2.7" from [email protected]
npm WARN   node_modules/fork-ts-checker-webpack-plugin
npm WARN     fork-ts-checker-webpack-plugin@"^6.5.0" from [email protected]
npm WARN     node_modules/react-dev-utils
npm WARN   2 more (tsutils, the root project)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peerOptional typescript@"^3.2.1 || ^4" from [email protected]
npm WARN node_modules/react-scripts
npm WARN   react-scripts@"5.0.1" from the root project

added 413 packages, removed 31 packages, and changed 41 packages in 44s

271 packages are looking for funding
  run `npm fund` for details

Removing template package using npm...

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/typescript
npm ERR!   peer typescript@">= 2.7" from [email protected]
npm ERR!   node_modules/fork-ts-checker-webpack-plugin
npm ERR!     fork-ts-checker-webpack-plugin@"^6.5.0" from [email protected]
npm ERR!     node_modules/react-dev-utils
npm ERR!       react-dev-utils@"^12.0.1" from [email protected]
npm ERR!       node_modules/react-scripts
npm ERR!         react-scripts@"^5.0.1" from the root project
npm ERR!   peer typescript@">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" from [email protected]
npm ERR!   node_modules/tsutils
npm ERR!     tsutils@"^3.21.0" from @typescript-eslint/[email protected]
npm ERR!     node_modules/@typescript-eslint/eslint-plugin
npm ERR!       @typescript-eslint/eslint-plugin@"^5.5.0" from [email protected]
npm ERR!       node_modules/eslint-config-react-app
npm ERR!         eslint-config-react-app@"^7.0.1" from [email protected]
npm ERR!         node_modules/react-scripts
npm ERR!       1 more (eslint-plugin-jest)
npm ERR!     tsutils@"^3.21.0" from @typescript-eslint/[email protected]
npm ERR!     node_modules/@typescript-eslint/type-utils
npm ERR!       @typescript-eslint/type-utils@"5.62.0" from @typescript-eslint/[email protected]
npm ERR!       node_modules/@typescript-eslint/eslint-plugin
npm ERR!         @typescript-eslint/eslint-plugin@"^5.5.0" from [email protected]
npm ERR!         node_modules/eslint-config-react-app
npm ERR!         1 more (eslint-plugin-jest)
npm ERR!     1 more (@typescript-eslint/typescript-estree)
npm ERR!   1 more (the root project)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@"^3.2.1 || ^4" from [email protected]
npm ERR! node_modules/react-scripts
npm ERR!   react-scripts@"^5.0.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/typescript
npm ERR!   peerOptional typescript@"^3.2.1 || ^4" from [email protected]
npm ERR!   node_modules/react-scripts
npm ERR!     react-scripts@"^5.0.1" 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/sj/.npm/_logs/2024-03-17T09_21_16_712Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sergey-belous sergey-belous added the bug Something isn't working label Mar 17, 2024
@ChrisUser
Copy link
Owner

Hi @sergey-belous, sorry for the late reply.

I've published a new release (v1.1.16) that includes a fix described in facebook/create-react-app#13080 (comment). Let me know if it solves all your issues.

I'll soon publish a new template for a complete React app configuration using Vite as suggested by the React community.
Sadly Create React App seems like a dead project, but I won't stop the support for this template yet.

@ChrisUser
Copy link
Owner

Going to close this one due to inactivity. Feel free to re-open in case the problem recurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants