You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[nuxt] Error while initializing app TypeError: Expected "0" to be defined
at app.js:3259
at app.js:1391
at Array.map (<anonymous>)
at _callee5$ (app.js:1390)
at tryCatch (commons.app.js:5425)
at Generator.invoke [as _invoke] (commons.app.js:5659)
at Generator.prototype.(:3000/anonymous function) [as next] (http://localhost:3000/_nuxt/commons.app.js:5477:21)
at asyncGeneratorStep (commons.app.js:12)
at _next (commons.app.js:34)
This does not happen in vue-router@3.0.1.
Rolling back with adding this to the package.json solves it for now (if anyone want a solution.)
"resolutions": {
"vue-router": "3.0.1"
},
This error is caused because I have a catch all / fallback route. I have tested in multiple Node versions and Nuxt version.
Version
3.0.2
Reproduction link
https://codesandbox.io/s/y22y9m738v
Steps to reproduce
Hello!
I use nuxt.js with this folder structure.
Which generates:
and it gives me this error:
This does not happen in vue-router@3.0.1.
Rolling back with adding this to the package.json solves it for now (if anyone want a solution.)
This error is caused because I have a catch all / fallback route. I have tested in multiple Node versions and Nuxt version.
What is expected?
Catch all routes working without error.
What is actually happening?
Catch all routes give a error message.
Related: #724
The text was updated successfully, but these errors were encountered: