highcharts / highcharts-vue

Other
686 stars 150 forks source link

TypeError: Cannot read property 'parts/Globals.js' of undefined - HighchartsMore #134

Closed Coedcoe closed 4 years ago

Coedcoe commented 4 years ago

I am using the Nuxt framework and have installed the highcharts-vue package as well as the main highcharts. It looks like this below:

import Vue from 'vue'
import Highcharts from 'highcharts'
import highchartsMore from 'highcharts/highcharts-more'
import HighchartsVue from 'highcharts-vue'

highchartsMore(Highcharts)

Vue.use(HighchartsVue)

Package.json looks like this:

    "highcharts": "^8.0.4",
    "highcharts-vue": "^1.3.5",

However when I load the app it gives this: TypeError: Cannot read property 'parts/Globals.js' of undefined

The library works fine when I don't include the highchartsMore package. Do I need to change the versions to get this to work properly?

Coedcoe commented 4 years ago

I was able to resolve it by following this closely: https://github.com/highcharts/highcharts-vue/issues/73