tradingview / charting-library-examples

Examples of Charting Library integrations with other libraries, frameworks and data transports
MIT License
1.33k stars 744 forks source link

[react-typescript] unable to resolve dependency tree #259

Open icastillejogomez opened 2 years ago

icastillejogomez commented 2 years ago

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: charting-library-react-example@0.1.0
npm ERR! Found: typescript@3.9.10
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 react-scripts-ts@2.13.0
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
timocov commented 2 years ago

@icastillejogomez would you like to provide fixes for this?

icastillejogomez commented 2 years ago

for sure @timocov what I have to do?

timocov commented 2 years ago

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 🙁

nichita-pasecinic commented 6 months ago

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