Hello guys, recently i am trying render to build my website, it is actually my fyp project, i am deployment my vue js on render , and i use the Chart js, but the problem is no matter how many time i had tried it keep error why? The messages shown in the logs are:
- Building for production…
ERROR Failed to compile with 1 error5:32:03 PM
error in ./src/components/admin/BarChart.vue?vue&type=script&lang=js
Module not found: Error: Can’t resolve ‘chart.js’ in ‘/opt/render/project/src/frontend/src/components/admin’
ERROR Error: Build failed with errors.
Error: Build failed with errors
But the problem is, i already imported Chart js in my BarChart.vue, and also i check my package.json consist the Chart.js.
Is anyone know how to solve this problem? Hope can getting your help, appreciate