Implementing client-side plugin usage in Inertia SSR + Vue
P粉333186285
P粉333186285 2023-09-02 15:59:24
0
2
449
<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>
P粉333186285
P粉333186285

reply all(2)
P粉578680675

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

P粉696605833

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

ssr: {
  noExternal: [...你的库,"vue3-google-map",...你的库],
},
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!