xkjyeah / vue-google-maps

Google maps component for vue with 2-way data binding
https://xkjyeah.github.io/vue-google-maps/
1.88k stars 474 forks source link

document is not defined with nuxt #764

Open fabioebner opened 3 years ago

fabioebner commented 3 years ago

I follow the instruction in readme and when I try to access my app I got the error:

document is not defined

Screen Shot 2021-02-02 at 21 39 01

bitpunk commented 3 years ago

document ist not available in your SSR Node.js environment (nuxt.js). Wrap your component in <client-only>. Also rember to load your plugin file in nuxt.config.js in client mode:

plugins: [
  //Vue.js plugin init belongs in here
  { src: '~/plugins/google-maps.js', mode: 'client' }`
]

Long story short: It's not a bug. Ask your question on stackoverflow for further help.

timon0305 commented 1 year ago

Screenshot 2023-01-12 at 19 18 11 Yes, it says there is no issue but I can't run application

DevAugusto commented 1 year ago

I have the same problem

timon0305 commented 1 year ago

you need to turn off ssl

DevAugusto commented 1 year ago

i need ssr activated

timon0305 commented 1 year ago

yes, there is no isseu. I already fixed

J-sabharwal commented 1 year ago

yes, there is no isseu. I already fixed

How did you fix this issue, im having the same problem