You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently integrating charting library with my react-typescript app. My code works as planned but only when I keep charting_library in public and src folder both. I do not want the code in the public folder since it is affecting web vitals and app performance is degrading because of this.
To Reproduce
Steps to reproduce the behavior:
Clone the repo charting_library/react-typescript
Add charting library in src and public
Add datafeed in public
Everything works
Now remove charting_library from public
Update library_path in widget options to src/charting_library
See error
this._innerWindow(...).widgetReady is not a function
Expected behavior
It should be able to work
The text was updated successfully, but these errors were encountered:
The static charting_library files (HTML, CSS, JS) need to be hosted and available at the path defined by library_path so they can fetched when the library widget is created.
Hi @edew , There should be a way which allows us to keep library_path inside src as it is a 12.5 MB folder which will not be minimized. If I keep that folder in src and change library_path to the new location, ideally it should work
Describe the bug
I am currently integrating charting library with my react-typescript app. My code works as planned but only when I keep charting_library in public and src folder both. I do not want the code in the public folder since it is affecting web vitals and app performance is degrading because of this.
To Reproduce
Steps to reproduce the behavior:
this._innerWindow(...).widgetReady is not a function
Expected behavior
It should be able to work
The text was updated successfully, but these errors were encountered: