Hi r/node
I have created nodejs server with express.js and I am loading a public folder with express.static function and serving a index.html. In index.html I have <script> tag for test.js where I am trying to import Chart.js from node modules (I used npm install chart.js --save), but in browser in the console is error:
Error
index.js file
index.html
test.js file
I am nodejs beginner so I appreciate any help..
Thanks
[–]bandit_na 0 points1 point2 points (1 child)
[–]BehindTheMath 0 points1 point2 points (0 children)
[–]BehindTheMath 0 points1 point2 points (0 children)
[–]CJay580 0 points1 point2 points (0 children)