SSR "Window is not defined" apexcharts #11195
-
|
Hi there!
when i use 'quasar dev' the app works fine and show the chart correctly but.. when i use 'quasar dev -m ssr' it shows "window is not defined" ....node_modules\apexcharts\dist\apexcharts.min.js other thing that i was trying is create a plugins folder> apexchart.js > |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
https://v1.quasar.dev/quasar-cli/boot-files#usage-of-boot-files boot: [
{ path: '/src/plugins/apexcharts.js', server: false },
... // other boot
]https://apexcharts.com/docs/vue-charts/ // src/plugins/apexcharts.js
import VueApexCharts from 'vue-apexcharts'
Vue.use(VueApexCharts)
Vue.component('apexchart', VueApexCharts) |
Beta Was this translation helpful? Give feedback.
https://v1.quasar.dev/quasar-cli/boot-files#usage-of-boot-files
https://apexcharts.com/docs/vue-charts/