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
I have a React application using next js, after Next 12 upgrade I am observing that requested route is being trimmed while rendering.
Any idea what is that I am missing? Any configuration needs to be changed?
It is deleting 44 character at the starting of the URL.
Also observing below error, not sure if it is related.
TypeError: Missing parameter name at 15
at lexer (/app/node_modules/next/dist/compiled/path-to-regexp/index.js:47:23)
at parse (/app/node_modules/next/dist/compiled/path-to-regexp/index.js:97:18)
at stringToRegexp (/app/node_modules/next/dist/compiled/path-to-regexp/index.js:329:27)
at Object.pathToRegexp (/app/node_modules/next/dist/compiled/path-to-regexp/index.js:403:12)
at Object.prepareDestination (/app/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js:125:24)
at Object.fn (/app/node_modules/next/dist/server/next-server.js:955:90)
at Router.execute (/app/node_modules/next/dist/server/router.js:252:48)
at async NextNodeServer.run (/app/node_modules/next/dist/server/base-server.js:365:29)
at async NextNodeServer.handleRequest (/app/node_modules/next/dist/server/base-server.js:303:20)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a React application using next js, after Next 12 upgrade I am observing that requested route is being trimmed while rendering.
Any idea what is that I am missing? Any configuration needs to be changed?
It is deleting 44 character at the starting of the URL.
Also observing below error, not sure if it is related.
TypeError: Missing parameter name at 15
at lexer (/app/node_modules/next/dist/compiled/path-to-regexp/index.js:47:23)
at parse (/app/node_modules/next/dist/compiled/path-to-regexp/index.js:97:18)
at stringToRegexp (/app/node_modules/next/dist/compiled/path-to-regexp/index.js:329:27)
at Object.pathToRegexp (/app/node_modules/next/dist/compiled/path-to-regexp/index.js:403:12)
at Object.prepareDestination (/app/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js:125:24)
at Object.fn (/app/node_modules/next/dist/server/next-server.js:955:90)
at Router.execute (/app/node_modules/next/dist/server/router.js:252:48)
at async NextNodeServer.run (/app/node_modules/next/dist/server/base-server.js:365:29)
at async NextNodeServer.handleRequest (/app/node_modules/next/dist/server/base-server.js:303:20)
Any help highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions