Implementing client-side plugin usage in Inertia SSR + Vue
P粉333186285
2023-09-02 15:59:24
<p>I'm using Laravel10 (jetstream) Vue3 InertiaJS. I want to enable SSR for my project, but I'm having trouble with the Vue apexcharts plugin. </p>
<p>It doesn't work. </p>
<p>I also encountered the same problem as @fawmi/vue-google-maps. </p>
<p>Google didn't help me. </p>
Encountered the same problem using PrimeVue plugin on the same stack. Follow the thread.
My mistake:
Directory import '/path_to_project/node_modules/primevue/config' does not support parsing ES modules imported from /path_to_project/bootstrap/ssr/ssr.mjs
I can only talk about vue-google-map Try this library vue3-google-map
If you use vite, you need to add the following to your vite configuration