Skip to content

nuxt build fails at generating pages in spa mode #6500

Closed
@alexkcollier

Description

@alexkcollier

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.

This bug report is available on Nuxt community (#c9850)

Activity

1001v

1001v commented on Oct 2, 2019

@1001v

I have the same issue on 2.10. There're no problems with 2.9.1.

AndrewBogdanovTSS

AndrewBogdanovTSS commented on Oct 2, 2019

@AndrewBogdanovTSS

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

Denoder

Denoder commented on Oct 3, 2019

@Denoder

Can also confirm this happening with 2.10.0
2.9 and below works fine.

AlexSwtlsk

AlexSwtlsk commented on Oct 3, 2019

@AlexSwtlsk

Same here

sbrieuc

sbrieuc commented on Oct 3, 2019

@sbrieuc

Same here

AndrewBogdanovTSS

AndrewBogdanovTSS commented on Oct 3, 2019

@AndrewBogdanovTSS

Guys, please, do not pollute the topic with the same messages. It's already clear that a lot of us have this issue

moritzsternemann

moritzsternemann commented on Oct 3, 2019

@moritzsternemann

Looks like the breaking change happened in the @nuxt/generator@2.10.0 update. Works fine using 2.9.1.

liyasthomas

liyasthomas commented on Oct 4, 2019

@liyasthomas

Build fails in Docker/Local/CI. Same here while generating pages in 'spa' mode.

TypeError: Cannot read property 'renderRoute' of undefined

josepjaume

josepjaume commented on Oct 4, 2019

@josepjaume

Same happens to me on 2.10.0 but I tried reverting to 2.9.1 without success - maybe it's cause a transient dependency?

AndrewBogdanovTSS

AndrewBogdanovTSS commented on Oct 4, 2019

@AndrewBogdanovTSS

@pi0 @manniL maybe you could provide some update on whether this issue is being addressed by the Nuxt team? Thank you

jmartinezuk

jmartinezuk commented on Oct 4, 2019

@jmartinezuk

Same here. Went back to 2.9.1 until it's fixed.

SamJakob

SamJakob commented on Oct 4, 2019

@SamJakob

I had this issue but I went back to 2.9.2 which also worked fine.

catisnorm

catisnorm commented on Oct 5, 2019

@catisnorm

Same happens to me on 2.10.0 but I tried reverting to 2.9.1 without success - maybe it's cause a transient dependency?

Did you removed node_modules and package-lock?
https://nuxtjs.org/guide/upgrading#npm

18 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @josepjaume@madmod@sbrieuc@Denoder@jmartinezuk

        Issue actions

          `nuxt build` fails at generating pages in spa mode · Issue #6500 · nuxt/nuxt