0
I need to import a package in Vuejs, whose name is 'Vue-Charts.js', and Vue is accusing error that cannot find the specified file. I tried renaming the package directory but could not. If someone knows how to do this and can help me I appreciate.
import {BarChart} from 'vue-chart.js'
Error:
Cannot resolve file 'vue-chart.js' less
Reports unresolved file references in JavaScript files, including CommonJS and
AMD modules references
is a dependency? installed with npm install?
– Rafael Augusto
Have you tried using full path or taking out . js?
– Victor Alessander
installed using npm install, and I’ve tried several things, but I was able to find a lib similar sound the point in the name, thank you guys
– LeonardoEbert
That one
vue-chart.js
is in the same directory as the file that imports it?– Sergio
The
vue-chart.js
is in the node_modules folder, while I import it in the src/Components folder of Vue, in one of the components that I will use it.– LeonardoEbert