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

TypeError: Cannot read property 'UDFCompatibleDatafeed' of undefined #240

Closed nearshore-macedonia closed 2 years ago

nearshore-macedonia commented 2 years ago

I am getting

"TypeError: Cannot read property 'UDFCompatibleDatafeed' of undefined"

When i try to run react javascript example. Is this related to some module versions

The error is in: charting-library-examples-master/react-javascript/src/components/TVChartContainer/index.jsx:34

line: datafeed: new window.Datafeeds.UDFCompatibleDatafeed(this.props.datafeedUrl),

I have: node version: 14.7.3 npm version: 6.14.13

charting_library folder is copied in charting-library-examples-master\react-javascript, public and src folders.

timocov commented 2 years ago

charting_library folder is copied in charting-library-examples-master\react-javascript, public and src folders.

What's about datafeeds folder from 3rd point in https://github.com/tradingview/charting-library-examples/tree/master/react-javascript ?

nearshore-macedonia commented 2 years ago

What do you mean?

nearshore-macedonia commented 2 years ago

I have copied just part of datafeeds folder so in sense @timocov was right :)