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

The Angular 5 example produces errors #187

Closed sandroboehme closed 3 years ago

sandroboehme commented 3 years ago

Checklist

Describe the bug

  1. Running the Angular 5 example out of the box results in ERROR in src/app/tv-chart-container/tv-chart-container.component.ts(16,5): error TS2322: Type '"D"' is not assignable to type 'Nominal<string, "ResolutionString">'. Type '"D"' is not assignable to type '{ [Symbol.species]: "ResolutionString"; }'. That can be fixed by using the right Nominal type: ...'D' as ResolutionString
  2. After 1. is fixed this error shows up: ERROR in src/assets/charting_library/charting_library.min.d.ts(1106,61): error TS2536: Type 'T' cannot be used to index type 'SeriesPreferencesMap'. It can be fixed by setting the TypeScript version to '"~3.7.2"' to match the newer version in udf.

To Reproduce

Steps to reproduce the behavior: Follow the steps in the README.md in "How to start" to try to start the application

Expected behavior

The application should start without an error