superman66 / vue-highcharts

The Component of Vue 2.x for highcharts
https://codesandbox.io/s/jjyqvv0k13
MIT License
115 stars 48 forks source link

Unable to use Vue2-highcharts with nuxt.js #28

Closed creativenoobie closed 6 years ago

creativenoobie commented 6 years ago

Hey,

I was trying to use this plugin with Nuxt.js and had no luck so far even with <no-ssr> option.

capture

Can you please check the issue?

Thanks in advance

superman66 commented 6 years ago

@creativenoobie sorry, I have been busy those days. I will check this issue in this weekend.

a1265137718 commented 6 years ago

hi, have this problem resolved?

Geminii commented 6 years ago

@superman66 Same problem here, can you fix it faster ? :) Even if vue2-highcharts loaded with ssr: false, it not working :(

function addStyle (obj /* StyleObjectPart */) { var update, remove var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]') // document is not defined at line 1127

superman66 commented 6 years ago

@Geminii @a1265137718 @creativenoobie I have add a repo for using vue2-highcharts in nuxt.js. vue-nuxt-demo or you can see README.md using-with-nuxt.js

About how to define a globle component in nuxt.js, you can see https://github.com/nuxt/nuxt.js/issues/421.

Geminii commented 6 years ago

@superman66 Hi again, Works perfectly, thanks a lot for your work :)

Thanks to add precision about documentation for nuxt and requirements.