question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Library does not function properly on IE11

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior IE11 Throwing an animation error.

Here is the stack trace: at _contains (http://192.168.1.92:4200/vendor.bundle.js:111033:41) at NoopAnimationDriver.prototype.containsElement (http://192.168.1.92:4200/vendor.bundle.js:111078:77) at TransitionAnimationEngine.prototype._balanceNamespaceList (http://192.168.1.92:4200/vendor.bundle.js:114345:17) at TransitionAnimationEngine.prototype.createNamespace (http://192.168.1.92:4200/vendor.bundle.js:114318:13) at TransitionAnimationEngine.prototype.register (http://192.168.1.92:4200/vendor.bundle.js:114369:13) at AnimationEngine.prototype.register (http://192.168.1.92:4200/vendor.bundle.js:115419:9) at AnimationRendererFactory.prototype.createRenderer (http://192.168.1.92:4200/vendor.bundle.js:181176:9) at DebugRendererFactory2.prototype.createRenderer (http://192.168.1.92:4200/vendor.bundle.js:161361:9) at createComponentView (http://192.168.1.92:4200/vendor.bundle.js:159965:9) at callWithDebugContext (http://192.168.1.92:4200/vendor.b"

Expected behavior IE11 to work

Reproduction of the problem https://swimlane.github.io/ngx-charts/

The error is present on the demo page. You can see the errors in console on IE11.

"TypeError: Object doesn’t support property or method ‘contains’

What is the motivation / use case for changing the behavior? Allowing IE11 to work

  • ngx-charts version: 5.3.1, 5.2.1

  • Angular version: 4.2.4

  • Browser: [IE 11.0 ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

18reactions
Belarothcommented, Jul 24, 2017

It looks like Angular changed something with Animations that broke ngx-charts. I was able to get it working again by adding the polyfills: import ‘core-js/es7/array’; import ‘classlist.js’;

and the shim: if (typeof SVGElement.prototype.contains == ‘undefined’) { SVGElement.prototype.contains = HTMLDivElement.prototype.contains; }

It’s not a fix but at least it gets it working in 6.0.0

6reactions
alexandermikutacommented, Jul 10, 2017

The latest version (6.0.0) still seems to have this error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems after installing Internet Explorer 11 - Microsoft Learn
Possible solutions to the problems you might encounter after installing IE11, such as crashing or seeming slow, getting into an unusable ...
Read more >
Code not running in IE 11, works fine in Chrome
I am storing the element's ID in a variable. What is the issue? function changeClass(elId) { var array = document ...
Read more >
Is your Vue app not working in IE 11? Here's how to fix it.
The main reason why your Vue app is breaking in IE11 is because the browser does not support modern JavaScript syntax.
Read more >
Ending Support for Tags in Internet Explorer 10 and 11
Adobe Experience Platform no longer provides update support for tags in Internet Explorer 10 and 11.
Read more >
Salesforce For Outlook Side Panel keeps on spinning and ...
For Side Panel to function properly, all these values must be set ... You may need to make sure IE 11 browser is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found