You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
There is no problem if Nuxt is set as non SSR in nuxt.config.js - ssr: false
But I'm using Nuxt because I need SSR.
And sadly I see error Window is not defined. I have wrapped the map in <client-only> Also I wrapped whole component into <client-only> just in case. But this didn't help.
Basically If I'm not importing anything from vue2-leaflet (I'm using nuxt-leaflet pack but I have to import some stuff from vue2-leaflet) everything works.
But as soon as I do e.g in my component: import { LWMSTileLayer } from "vue2-leaflet" I'm getting the Window error.
Hi.
There is no problem if Nuxt is set as non SSR in nuxt.config.js -
ssr: false
But I'm using Nuxt because I need SSR.
And sadly I see error Window is not defined. I have wrapped the map in
<client-only>
Also I wrapped whole component into<client-only>
just in case. But this didn't help.Basically If I'm not importing anything from
vue2-leaflet
(I'm usingnuxt-leaflet
pack but I have to import some stuff fromvue2-leaflet
) everything works.But as soon as I do e.g in my component:
import { LWMSTileLayer } from "vue2-leaflet"
I'm getting the Window error.Edit:
Ofc I can do:
vue-leaflet/Vue2Leaflet#207 (comment)
But then what is the point of this module anyway?
The text was updated successfully, but these errors were encountered: