Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) TypeError: e._innerWindow(...).widgetReady is not a function #458

Closed
crackfoo opened this issue Feb 5, 2021 · 6 comments

Comments

@crackfoo
Copy link
Contributor

crackfoo commented Feb 5, 2021

I've seen this issue in TradingView github and several posts have indicated to serve build without -s but seems that made no improvement...

I'm using 2.5.5 of baseapp and wondering if anyone has had this problem? It throws this error when I load the trading page and affects just the chart when you change markets. Everything else changes to the proper market except the chart doesn't switch...

image

Thanks

@crackfoo
Copy link
Contributor Author

crackfoo commented Feb 5, 2021

Reference to issue from tradingview: tradingview/charting-library-examples#15 (comment)

@crackfoo
Copy link
Contributor Author

crackfoo commented Feb 8, 2021

Also some people have reported this fixes the issues:

tradingview/charting-library-examples#110 (comment)

But unsure how to set that and where... There is no libraryPath at all in baseapp...

@crackfoo
Copy link
Contributor Author

But alas, I do see it's set in here:

https://github.com/openware/baseapp/blob/master/src/containers/TradingChart/config.ts#L29

Not sure what else to do to figure this. Has no one else seen this issue? I get it right out of the box 2.6 and 2.5 and is about the last thing that's not working

@kodlar
Copy link

kodlar commented Feb 19, 2021

Check your "TradingView.version" from console mine is 1.14
console output
ƒ s() { return "1.14 (internal id aaac22e2 @ 2019-04-04 08:31:56.077488)" }

I got the same error, on my local windows 10 machine but unfortunately on production server which is ubuntu it works well
my library path is correct and I decide to change my local settings from my local language to english
from locale: "tr", to locale: "en", it works.

@crackfoo
Copy link
Contributor Author

thanks for the suggestion.

I have s(){return"1.15 (internal id 8562c7b8 @ 2019-12-18 11:58:08.555993) and now using baseapp 2.6.14 and still throws this error... and I've had everything else as default which was en....

@crackfoo
Copy link
Contributor Author

This issue was caused by CloudFlare's "Rocket Loader"

Disabled it and the charting now works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants