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

IE 11 bug - SCRIPT1053: Const must be initialized #167

Closed
mbkupfer opened this issue Mar 28, 2019 · 1 comment
Closed

IE 11 bug - SCRIPT1053: Const must be initialized #167

mbkupfer opened this issue Mar 28, 2019 · 1 comment

Comments

@mbkupfer
Copy link

On IE 11, I'm getting an error that that says Const must be initialized

when I open up the dev console debugger, it takes me to the following block:

 scale.domain = function(_) {
    if (!arguments.length) return domain.slice();
    domain = [], index = new Map();
    for (const value of _) {
      const key = value + "";
      if (index.has(key)) continue;
      index.set(key, domain.push(value));
    }
    return scale;
  };

I've seen similar issues brought up for other projects in github, the most promising being vercel/next.js#4334. I tried to use babel/polyfill as one of the comments mentioned, but that did not fix the problem.

@mbkupfer
Copy link
Author

Please disregard. I just read the release notes for v3.0.0.

Installing the latest 2.x fixed this issue.

For future reference, that command I used:

npm i d3-scale@2.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant