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

Error when import in angular project #120

Open
mengyu-dev opened this issue Oct 25, 2021 · 0 comments
Open

Error when import in angular project #120

mengyu-dev opened this issue Oct 25, 2021 · 0 comments

Comments

@mengyu-dev
Copy link

When imported in an Angular project, it prevents Angular application from starting because of the deprecated dependency d3-collection which redefines some collection classes in the global score, like Map, Set. These old incomplete implementations cause problems.

in the core.js of Angular, it uses Map and Set of the new language specification

// like this:
       this.source = source;
        var records = this._records = new Map();
// like this: 
       var componentDefPendingResolution = new Set();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant