I successfully implemented a cal-heatmap instance in my Angular 2 (angular-cli) project locally, but when I deployed the project to Heroku, I encountered some errors that prevent the cal-heatmap from displaying.
https://i.stack.imgur.com/8gY90.png
The error seems to point to a specific line within the cal-heatmap.js file:
getDayOfYear: d3.time.format("%j"),
Although I have ensured that both d3.js and cal-heatmap.js are correctly referenced in my project, the issue persists.
Could this be related to typings? I attempted to address this by adding the following dependencies to my package.json file without success:
- "@types/d3": "~4.4.1"
- "@types/cal-heatmap": "~3.5.31"
Any suggestions on how to resolve this and get cal-heatmap working on my Heroku deployment?
UPDATE After realizing I was using the latest version of d3.js, I switched to the recommended version (v3.5.6) mentioned on . However, new errors have appeared:
https://i.stack.imgur.com/D2cYQ.png
I'm still unsure about the necessary steps to rectify this issue.