Closed raghibislam closed 3 years ago
Did you look in similar issues https://github.com/tradingview/charting-library-examples/issues?q=is%3Aissue+sort%3Aupdated-desc+widgetReady+is%3Aclosed ?
Similar but i have issue on line number 314 . And from the above link I can't solve the issue at all.
Can you check what's loading inside iframe? Probably you get 404 or different page there.
Please check this image , i hope this will help you
https://user-images.githubusercontent.com/46419375/96755464-7a4fde00-13f2-11eb-9325-c6d2a29c4ad1.png
Best regards.
@raghibislam it doesn't answer on my question. I got your point and seen this error many times, that's why I asked about checking what exactly is loaded inside iframe.
Hi @timocov, I hope you are well! I'm also having this same issue
I am using react and plain js. When I run the example, things work properly and I see the iframe has src="/charting_library/....."
, however, when running in my react app, the src is missing /charting_library/
. If I add it manually (as in changing the HTML from inspector) the graph loads. Here's my config
const config = {
libraryPath: '/charting_library/',
// ...
}
Thank you in advance for the help
Edit: I'm an idiot! I had to use library_path
instead of libraryPath
@timocov got same issue on prod build
Followe by https://github.com/tradingview/charting-library-tutorial/blob/master/documentation/integration.md
I used this library in react js application with finnhub.io api and getting this error .
× Unhandled Rejection (TypeError): t._innerWindow(...).widgetReady is not a function (anonymous function) src/charting_library/charting_library.min.js:314 311 | n.addEventListener("load", e, !1); 312 | })), 313 | this._innerWindowLoaded.then(function () {