#nuxt-leaflet error

13 messages · Page 1 of 1 (latest)

onyx fox
#

Hi guys, i have an error when i add 'nuxt-leaflet' in modules of nuxt.config.js ,after install dependence.
If i add 'nuxt-leaflet' in modules and i run the app (without other code), i have this error:

Cannot restart nuxt: Cannot read properties of undefined (reading 'css') 15:01:35

at module (node_modules\nuxt-leaflet\lib\module.js:7:16)
at installModule (/C:/AppName/node_modules/@nuxt/kit/dist/index.mjs:450:101)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async initNuxt (/C:/AppName/node_modules/nuxt/dist/index.mjs:2682:7)
at async load (/C:/AppName/node_modules/nuxi/dist/chunks/dev.mjs:183:9)
at async _applyPromised (/C:/AppName/node_modules/nuxi/dist/chunks/dev.mjs:96:10)

Some solution? Thank you!

random rose
#

Looks like the module is nuxt 3 only as far as I can tell @onyx fox

onyx fox
#

So have problem for nuxt 3?

random rose
#

looks like it yes

onyx fox
#

can i use leaflet without nuxt module?

random rose
#

sure yeah

#

modules usually just make it easier to get started asap but you can still install everything using the regular package if there is no module for it

onyx fox
#

@random rose is there a module for maps for Nuxt3? Not Google maps

random rose
#

This perhaps