I am making a project in which i am using chart.js.
When i ran my code using node index.js it gave me the following error-
/home/pi/project/node_modules/chart.js/src/core/core.helpers.js:672
return window.requestAnimationFrame || ^ ReferenceError: window is not defined at /home/pi/project/node_modules/chart.js/src/core/core.helpers.js:672:10 at module.exports (/home/pi/project/node_modules/chart.js/src/core/core.helpers.js:680:3) at Object.<anonymous> (/home/pi/project/node_modules/chart.js/src/chart.js:6:31) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) I am running node version 7.9.0 and npm version 4.2.0
via Rishikesh
No comments:
Post a Comment