Next.js Discord

Discord Forum

TypeError [ERR_INVALID_ARG_TYPE]: The "to" argument must be of type string. Received undefined

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
✓ Starting...
TypeError [ERR_INVALID_ARG_TYPE]: The "to" argument must be of type string. Received undefined
at Object.relative (node:path:529:5)
at Watchpack.<anonymous> (D:.development\on\aix\node_modules\next\dist\server\lib\router-utils\setup-dev-bundler.js:382:55)
at Watchpack.emit (node:events:518:28)
at Watchpack._onTimeout (D:.development\on\aix\node_modules\next\dist\compiled\watchpack\watchpack.js:1:37727)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7) {
code: 'ERR_INVALID_ARG_TYPE'

4 Replies

Northeast Congo LionOP
I have already made several corrections and changes to dependencies and the code as a whole. But the problem remains. Could you help me?
&752637460550385834
Asian black bear
Don’t ping us outside of moderation purposes.
Northeast Congo LionOP
I thought you guys could help with this. I was able to solve the problem mentioned. It was some variables that were misconfigured in the environment...