nuxt: `nuxt build` fails at generating pages in spa mode
Version
Reproduction link
https://gitlab.com/alexkcollier/nuxt-build-repro
Steps to reproduce
- Create nuxt project
- Set mode to
spainnuxt.config.js yarn build
What is expected ?
Build succeeds
What is actually happening?
FATAL Cannot read property 'renderRoute' of undefined

Additional comments?
yarn generate works as expected, and so does building in universal mode.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 38
- Comments: 27
Fixed via https://github.com/nuxt/nuxt.js/commit/136777de1d7924f052c803c6397530de80bdea50
It happens not only in SPA mode but also in Universal, with and without a
--modernflag. Dev mode is working fine thoughLooks like the breaking change happened in the
@nuxt/generator@2.10.0update. Works fine using2.9.1.Guys, please, do not pollute the topic with the same messages. It’s already clear that a lot of us have this issue
nuxt@2.10.1has been released, fixing the issue@riux because Nuxt 2.10.1 wasn’t officially released yet. You should wait. And please, use English
@riux it better be since now 2.10.0 is not usable for many people
Build fails in Docker/Local/CI. Same here while generating pages in ‘spa’ mode.
TypeError: Cannot read property 'renderRoute' of undefined