Skip to content

Cannot read property 'replace' of undefined #990

@sedubois

Description

@sedubois

I tried to upgrade from next@2.0.0-beta.20 but something changed in the beta.21 specifically, I get the stack trace below when running yarn dev. Here is my app: https://github.com/relatenow/relate

Details TypeError: Cannot read property 'replace' of undefined at toRoute (/Users/sdubois/Documents/relate/node_modules/next/dist/lib/router/router.js:618:14) at new Router (/Users/sdubois/Documents/relate/node_modules/next/dist/lib/router/router.js:85:19) at renderPage (/Users/sdubois/Documents/relate/node_modules/next/dist/server/render.js:143:25) at /Users/sdubois/Documents/relate/node_modules/next/dist/server/document.js:56:22 at renderStatic (/Users/sdubois/Documents/relate/node_modules/glamor/lib/server.js:18:14) at Function.getInitialProps (/Users/sdubois/Documents/relate/node_modules/next/dist/server/document.js:55:45) at _callee$ (/Users/sdubois/Documents/relate/node_modules/next/dist/lib/utils.js:36:30) at tryCatch (/Users/sdubois/Documents/relate/node_modules/regenerator-runtime/runtime.js:64:40) at Generator.invoke [as _invoke] (/Users/sdubois/Documents/relate/node_modules/regenerator-runtime/runtime.js:355:22) at Generator.prototype.(anonymous function) [as next] (/Users/sdubois/Documents/relate/node_modules/regenerator-runtime/runtime.js:116:21) (node:4021) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot read property 'replace' of undefined

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions