I am trying to run ‘nuxt generate’ for a multi language website (de and en) and I get the following error: ERROR Error generating route "/de": This page could not be found
I get the error only when I set defaultLocale: 'de'
, on defaultLocale: 'en'
it works perfectly. I tried playing with the plugin config but to no avail.
This is my configuration: config
These are the generated pages: generated pages
If defaultLocale: 'en', it doesn’t try to generate a page for e.g. “/en”
From what I can see in /dist folder, if default locale is on 'de' it create the root pages, a folder 'en' for English pages and it tries to create another folder 'de' -> which fails. This is not replicable for default locale set to 'en', it creates the root pages and a folder 'de' for the german one, without any new 'en' folder.