search

Home  >  Q&A  >  body text

Implementing client-side plugin usage in Inertia SSR + Vue

<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粉333186285P粉333186285506 days ago521

reply all(2)I'll reply

  • P粉578680675

    P粉5786806752023-09-03 10:04:05

    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

    reply
    0
  • P粉696605833

    P粉6966058332023-09-03 09:09:19

    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",...你的库],
    },

    reply
    0
  • Cancelreply