typescript-starter icon indicating copy to clipboard operation
typescript-starter copied to clipboard

Peer dependency mismatch causes project creation to be broken

Open PRTTMPRPHT opened this issue 4 years ago • 0 comments

  • I'm submitting a ... [❌] bug report [ ] feature request [ ] question about the decisions made in the repository [ ] question about how to use this project

  • Summary

Creating new projects with the CLI currently errors, because there is a dependency mismatch between the typescript version the project provides and the typescript version that typedoc requires. It is probably best to upgrade typedoc to the newest version.

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/typescript
npm ERR!   dev typescript@"^4.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@"3.9.x || 4.0.x" from [email protected]
npm ERR! node_modules/typedoc
npm ERR!   dev typedoc@"^0.19.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.``` 

PRTTMPRPHT avatar May 10 '21 21:05 PRTTMPRPHT