swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.28k stars 1.15k forks source link

Angular 9 Error: Expecting instance of DOM Element #1447

Closed elmoyeldo closed 4 years ago

elmoyeldo commented 4 years ago

Describe the bug After Angular 9 Update, whenever mouse is hovered over the graph, getting the error: Error: Expecting instance of DOM Element.

Screenshots image

Demo Provide an online demo (stackblitz, codesandbox, or similar) where the issue can be reproduced

ngx-charts version 14.0.0

Additional context Getting same error in Chrome & Safari

elmoyeldo commented 4 years ago

The issue has resolved when I removed aot:true in angular.json.

saidsoualhi commented 4 years ago

I have also this issue and I don't want to remove the aot option from my angular.json, any solution for this ?

elmoyeldo commented 4 years ago

I have also this issue and I don't want to remove the aot option from my angular.json, any solution for this ?

Need to disable the Ivy in tsconfig.app.json:

  "angularCompilerOptions": {
    "enableIvy": false
  }
saidsoualhi commented 4 years ago

I have also this issue and I don't want to remove the aot option from my angular.json, any solution for this ?

Need to disable the Ivy in tsconfig.app.json:

  "angularCompilerOptions": {
    "enableIvy": false
  }

Already disabled because we was having an issue with localize translation :/

quanghv991 commented 4 years ago

Same issue after upgrade to angular 10

saidsoualhi commented 3 years ago

Any news about this issue?

samy-blake commented 3 years ago

same error on version 16.0.0 :/

fahadjabbar8 commented 3 years ago

any update on this

sanchito59 commented 2 years ago

Bump. Still having this issue with the latest version of this package and Angular v 10.1.6 and rxjs v 6.6.7, @elmoyeldo's solutions don't work for me either.