nuxt: `nuxt build` fails at generating pages in spa mode

Version

v2.10.0

Reproduction link

https://gitlab.com/alexkcollier/nuxt-build-repro

Steps to reproduce

  1. Create nuxt project
  2. Set mode to spa in nuxt.config.js
  3. yarn build

What is expected ?

Build succeeds

What is actually happening?

FATAL Cannot read property 'renderRoute' of undefined

error.png

Additional comments?

yarn generate works as expected, and so does building in universal mode.

<div align="right">This bug report is available on Nuxt community (#c9850)</div>

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 38
  • Comments: 27

Most upvoted comments

It happens not only in SPA mode but also in Universal, with and without a --modern flag. Dev mode is working fine though

Looks like the breaking change happened in the @nuxt/generator@2.10.0 update. Works fine using 2.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.1 has 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