Remove references to JS global object
Stop working with Javascript global object. Angular removed access to global (for tree shaking reasons ++) in Angular v6.x. We are now at Angular v13.x.
Angular users will not have an easy time embedding your JS library into their applications.
An Angular project will fail with the error: "Cannot access global" when trying to embed a Chart.
-
hao hu commented
Hi Bjorn, thanks for the advice. To help use understand the issue better, are you able to provide some more info? Any error stack traces that you can share if not sensitive?
Also, what version of SDK are you using? We have just released v2.2.0 which fixed a similar issue where one of the libraries we are using referenced global object. This is the link to the issue https://github.com/mongodb-js/charts-embed-sdk/issues/56.