charting-library-examples icon indicating copy to clipboard operation
charting-library-examples copied to clipboard

[react-typescript] unable to resolve dependency tree

Open icastillejogomez opened this issue 3 years ago • 4 comments

  • [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:

  1. Clone the repo
  2. Go to 'react-typescript' folder
  3. Run command: npm install
  4. 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 avatar Dec 12 '21 23:12 icastillejogomez

@icastillejogomez would you like to provide fixes for this?

timocov avatar Dec 13 '21 14:12 timocov

for sure @timocov what I have to do?

icastillejogomez avatar Dec 13 '21 23:12 icastillejogomez

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 🙁

timocov avatar Dec 14 '21 13:12 timocov

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

nichita-pasecinic avatar Dec 26 '23 09:12 nichita-pasecinic