Don't know what happened inside next.js, prompting error I don't understand. Hope someone could point me a direction that I might know where to find the problem. Thanks
I'm getting this:
TypeError: Cannot read property 'href' of undefined
at getURL (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/next/dist/lib/utils.js:155:30)
at new Router (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/next/dist/lib/router/router.js:101:29)
at _callee3$ (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/next/dist/server/render.js:235:22)
at tryCatch (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/regenerator-runtime/runtime.js:296:22)
at Generator.prototype.(anonymous function) [as next] (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/regenerator-runtime/runtime.js:114:21)
at step (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:30)
at _next (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:9)
at <anonymous>
TypeError: Cannot read property 'href' of undefined
at getURL (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/next/dist/lib/utils.js:155:30)
at new Router (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/next/dist/lib/router/router.js:101:29)
at _callee3$ (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/next/dist/server/render.js:235:22)
at tryCatch (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/regenerator-runtime/runtime.js:296:22)
at Generator.prototype.(anonymous function) [as next] (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/regenerator-runtime/runtime.js:114:21)
at step (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:30)
at _next (/Users/lijung/Documents/canner/canner-firebase-cms/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:9)
at <anonymous>
Bug report
Describe the bug
Don't know what happened inside next.js, prompting error I don't understand. Hope someone could point me a direction that I might know where to find the problem. Thanks
I'm getting this:
To Reproduce
You can try by clone this branch and start,
npm run dev
https://github.com/Canner/canner-firebase-cms/tree/nextjsgo to path
/dashboard
System information