highcharts / highcharts-vue

Other
686 stars 150 forks source link

Typescript error can't resolve 'highcharts' #108

Closed markcouvaras closed 5 years ago

markcouvaras commented 5 years ago

Hi Guys,

I am trying to use Highcharts-Vue with typescript but I am getting the below error:

ERROR in ./node_modules/highcharts-vue/dist/highcharts-vue.min.js Module not found: Error: Can't resolve 'highcharts'

I am currently using the latest version of 1.3.5. Is there another configuration that I should be using as I am under the impression that @types/highcharts should not be installed.

Your help is much appreciated

markcouvaras commented 5 years ago

Nevermind, the issue was being caused by the fact that highcharts-vue does not install the correct highcharts library. I had to run 'npm install highcharts' again afterwards to get the latest version

34r7h commented 4 years ago

This wasn't fixed

cyborg999 commented 4 years ago

holy sh*t. i've been trying to figure out what causes the error. I thought it was the @types/highcharts. Thanks mah saviour

xetryDcoder commented 3 years ago

The problem with my setup was using --save. i installed it without it now it works fine!