vue-apexcharts icon indicating copy to clipboard operation
vue-apexcharts copied to clipboard

Nuxt / vue-apexcharts in static mode

Open npltr62 opened this issue 2 years ago • 4 comments

Is there a way to display charts when i generated static files in Nuxt? i have blank page ... apex.js `import Vue from 'vue' import ApexChart from 'vue-apexcharts'

Vue.component('Apexchart', ApexChart) nuxt-config plugins: [ { src: '~/plugins/apex.js', ssr: false } ],`

npltr62 avatar Apr 23 '22 10:04 npltr62

@npltr62 have you tried one of these solutions?

https://github.com/apexcharts/vue-apexcharts/issues/34#issuecomment-544191308

rmarmitt avatar Apr 25 '22 14:04 rmarmitt

@rmarmitt yes but when i switched ssr in true , I had the same issue and error "Windows undefined" it seems apexcharts doesn't render on server side

npltr62 avatar Apr 25 '22 19:04 npltr62

Can you provide the .vue file of apexchart section?

Have you added <client-only> as apex wrapper?

rmarmitt avatar Apr 25 '22 19:04 rmarmitt

try this first issues/34#issuecomment i hope this closed your issue

karis avatar May 26 '23 23:05 karis