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

Cannot read property 'UDFCompatibleDatafeed' of undefined #253

Open Merrick17 opened 2 years ago

Merrick17 commented 2 years ago

I implemented the charting library into serum-dex-ui , and it worked on local dev, after i build and deploy to the server I get this error image

krupasavadiya commented 2 years ago

added below script in public/index.html

had resolved my issue

krupasavadiya commented 2 years ago

sorry i have read wrong, now i am facing same issue like in local it is working fine but on server I am also facing same issue. any suggestion?

Regards, Krupa savadiya

oguzhanvarli commented 1 year ago

sorry i have read wrong, now i am facing same issue like in local it is working fine but on server I am also facing same issue. any suggestion?

Regards, Krupa savadiya

Hey krupasavadiya,

Did you solve it? I have same issue.

Thanks

nishihere19 commented 1 year ago

Just remove the window.datafeed. UDFCompatibleDatafeed() and leave it is new UDFCompatibleDatafeed() and import this from datafeed/lib folder.

cookabc commented 1 year ago

Just remove the window.datafeed. UDFCompatibleDatafeed() and leave it is new UDFCompatibleDatafeed() and import this from datafeed/lib folder.

Thank you @nishihere19, you saved my day!

hbsoftco commented 1 month ago

@nishihere19 Thanks, It works fine for me :)