Integration with Nuxt 3 #1162
Unanswered
danielkjcoles
asked this question in
Questions & Help
Replies: 1 comment 4 replies
-
have you tried Lazy Loading? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use leaflet-geoman on a Nuxt 3 project I'm messing with, but can't seem to get it to work.
I have my component wrapped in
<ClientOnly>
and registered in a client-side only plugin. In my component I import leaflet and initialise my leaflet map. All works as expected, lovely.Now, after I import leaflet I try to import leaflet-geoman in the component using
import '@geoman-io/leaflet-geoman-free';
to which in the console I get the errorUncaught (in promise) TypeError: Cannot read properties of undefined (reading 'POLYGON_CLIPPING_MAX_QUEUE_SIZE')
I've tried importing leaflet-geoman later once the component is mounted, but the same error.
Any help would be appreciated, as I am stumped.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions