Ember Type Error Document undefined - Cal-heatmap


I am using cal-heatmap in my project. When using CDN, heatmap is rendered, but when I try using npm package installer, error throws up as " cal-heatmap.js:19 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘document’)


“this” keyword bind issue- javascript - D3.js : Uncaught TypeError: Cannot read property 'document' of undefined - Stack Overflow

1 Like