charting-library-examples
charting-library-examples copied to clipboard
[react-typescript] unable to resolve dependency tree
- [X] This issue is NOT related to the charting library itself
Describe the bug Error installing react-typescript demo dependencies
To Reproduce
Steps to reproduce the behavior:
- Clone the repo
- Go to 'react-typescript' folder
- Run command:
npm install - See the error:
❯ npm install
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@"^3.5.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@"2.x" from [email protected]
npm ERR! node_modules/react-scripts-ts
npm ERR! react-scripts-ts@"2.13.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! See /Users/nacho/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/nacho/.npm/_logs/2021-12-12T22_58_15_993Z-debug.log
Additional context
❯ node -v
v16.3.0
❯ npm -v
8.1.3
@icastillejogomez would you like to provide fixes for this?
for sure @timocov what I have to do?
It seems that react-scripts-ts is not supported any more... Probably we need to migrate to in-house configs instead.
Probably we could migrate to parcel@2 or esbuild instead then. Looks like an issue is more complicated than it looked at the first time 🙁
will this be solved ? or what is the workaround at least ?
After installing with --legacy-peer-deps the start command fails with
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
using nodejs v20