How to import a package that has punctuation in the name in VueJS

0

I need to import a package into VueJS, whose name is 'vue-charts.js', and Vue is reporting an error that can not find the file specified. I have already tried to rename the package directory but I could not. If anyone knows how to do this and can help me, I appreciate it.

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
    
asked by anonymous 07.08.2017 / 15:10

1 answer

0

Hello Is this import you are trying to make a module of yours? or it is from some package installed on the node_modules, if it is to inform the url of the package, even to test. if it is your mod module try

import {BarChart} from './vue-chart'
    
11.08.2017 / 00:29