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
ERROR Cannot read property 'substr' of undefined
at server.js:1965:28
at Array.map (<anonymous>)
at createRouter (src/router.js:57:0)
at router_createRouter (src/.nuxt/router.js:6:0)
at createApp (src/.nuxt/index.js:69:0)
at module.exports.__webpack_exports__.default (src/.nuxt/server.js:82:0)
at node_modules/vue-server-renderer/build.prod.js:1:78608
at new Promise (<anonymous>)
at node_modules/vue-server-renderer/build.prod.js:1:78080
at Object.renderToString (node_modules/vue-server-renderer/build.prod.js:1:81615)
I attached a console.log to route.path and route.name (line 57 on router.js) and this is what the output was:
/api
api
/api/api
api-api
/root
undefined
/root/login
root-login
/root/login/login
root-login-login
Possible Solution:
(I made this change manually to my setup and it made it work)
change this:
Version:
1.2.5
Config:
Layout:
Error:
I attached a console.log to route.path and route.name (line 57 on router.js) and this is what the output was:
Possible Solution:
(I made this change manually to my setup and it made it work)
change this:
to this: (add optional chaining)
The text was updated successfully, but these errors were encountered: