TypeError: clone.node.getBBox is not a function
See original GitHub issueHi, I have a console warning I was hoping someone could help me with. When using apex charts heatmap I get a long callstack console warning. I’m doing a smoke test on the component with jest to make sure it renders properly. I also tested for the example code for React heatmap on the apex charts webpages and I get same warning.
console.warn node_modules/apexcharts/dist/apexcharts.common.js:14260
TypeError: clone.node.getBBox is not a function
at new create (path\node_modules\apexcharts\dist\apexcharts.common.js:21109:30)
And then the callstack continues a bit before another warning:
console.warn node_modules/apexcharts/dist/apexcharts.common.js:14260
TypeError: this.node.getScreenCTM is not a function
at create.screenCTM (path\node_modules\apexcharts\dist\apexcharts.common.js:21342:41)
And the callstack continues again.
Anyone have an idea of what might be the problem?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top GitHub Comments
For anybody who is looking for mocks to suppress this warning. You can also add jest-canvas-mock if you need a proper implementation behind the scenes.
Other users have fixed this error by mocking ApexCharts in their tests
https://github.com/apexcharts/ng-apexcharts/issues/48#issuecomment-667124436 https://github.com/apexcharts/react-apexcharts/issues/197#issuecomment-660125576