Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Charts
Created by Guest
Created on Feb 21, 2022

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.
  • Guest
    Feb 22, 2022
    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.