DEV Community


Discussion on: Sitemap for dynamic routes in NuxtJS

pastorsi profile image
Simon Measures

I'm trying to implement this but having a problem. When I run my Nuxt project in dev ($ npm run dev), I get:
Error: Cannot find module '@/modules/generator'
Do have any suggestions?

andynoir profile image
Andrey Gaisinskii Author


Which version of Nuxt are you using ? A quote from the docs:

If you are going to offer using buildModules please mention that this feature is only available since Nuxt v2.9. Older users should upgrade Nuxt or use the modules section.

Also check out for typos and file extensions.