Visit the link and inside sandbox terminal run: npm run generate
https://codesandbox.io/s/nuxt-generate-trailing-slash-bug-x7bhd?file=/nuxt.config.js
/pages/about.vue
/pages/about/company.vue # or /pages/about/company/index.vue
trailingSlash: true inside nuxt.confignuxt generate to generate nested pagesSuccess generation of nested routes containing trailing slash.
โ Generated route "/about/company/"
โ Generated route "/about/info/"
The command is failing with error This page could not be found and missing trailing slashes on nested routes.
Note: the build actually completes without issues, just seems to be the build error.
Error generating route "/about/company": This page could not be found
Error generating route "/about/info": This page could not be found

Can someone please help confirm this bug, and also point me in the right direction for where to fix this. Thanks :)
@cain +1 Trailing slash are needed for netflify
Yes! This is a bug! (which is actually is regression, before 2.14.0 it was working fine). Reporting this bug was on my todo list for awhile. Thanks for reporting and opening a pull request!
(With fallback set to true, those not found routes are still accessible. Or you can manually add them in routes.)
To be more accurate, the problem occurs when using nuxt-child.
This should be fixed in v2.14.8. Please reopen if not.
I've just upgraded to v.2.14.8 and my nested routes are correctly generated!๐ Thanks everyone for the fix!๐
Most helpful comment
Yes! This is a bug! (which is actually is regression, before 2.14.0 it was working fine). Reporting this bug was on my todo list for awhile. Thanks for reporting and opening a pull request!
(With fallback set to true, those not found routes are still accessible. Or you can manually add them in routes.)
To be more accurate, the problem occurs when using nuxt-child.