Nuxt.js: Create New App using Yarn create nuxt-app works in dev mode but fail after being published to firebase hosting

Created on 11 Aug 2020  路  6Comments  路  Source: nuxt/nuxt.js

Versions

  • nuxt: v 2.14.1

Reproduction

Github Repository
https://github.com/andyfensham/NuxtTest214


Template App created using yarn create nuxt-app and npx fails to run in production

Steps to reproduce

Please see all steps to reproduce.
Snag_11557b1
Snag_1158847
Snag_115bb7c
Snag_11603b1
Snag_11629c7
The demo site created is : https://scadfirebase214.web.app/

What is Expected?

Site worked in Dev but does not work once uploaded

What is actually happening?

You can not navigate and the following error appears in the console.
Snag_1173e82

bug-report stale

Most helpful comment

I have managed to isolate the package causing the issue. It is the "nuxt": "2.14.1", package. Updating to 2.14.0 resolves the issue. Not sure what the bug is though.

All 6 comments

I have managed to isolate the package causing the issue. It is the "nuxt": "2.14.1", package. Updating to 2.14.0 resolves the issue. Not sure what the bug is though.

Thanks, I also got this problem yesterday after updating to 2.14.1, but only on surge.sh so I just filed an issue there. Good to know that it is not unique to surge.sh.

It works on all other servers I tried (netlify.com, commons.host and a couple of local servers).

Duude this bug almost drove me crazy , i've been trying to fight it for the past 3 days , opened a TICKET then closed it because i thought it was coming from me ... i fixed it by copying old nuxt project node_modules folder in the new one but that was a temporary fix ..
i can confirm that setting the version of nuxt to "nuxt": "2.14.0" does fix it

I suspect this might be related:
https://github.com/nuxt/nuxt.js/issues/7901

I suspect this might be related:

7901

that's exactly it !

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pehbehbeh picture pehbehbeh  路  3Comments

vadimsg picture vadimsg  路  3Comments

uptownhr picture uptownhr  路  3Comments

mattdharmon picture mattdharmon  路  3Comments

vadimsg picture vadimsg  路  3Comments