[Vuejs]-How to import & use @Google/maps npm package in Nuxt?

0👍

In your nuxt.config file, try to add this

plugins: [
    {src: '~/plugins/server-only.js', ssr: false},
  ],

Then, call the component in your .vue file inside a <client-only> tag.

I guess this will solve your problem.

Leave a comment