Npm run dev error (client only)
Unanswered
Saltwater Crocodile posted this in #help-forum
Saltwater CrocodileOP
Hi, I'm currently using next.js 14.0.1. When I do
npm run dev and go to one page: ./firstFolder, there is no problem and everything compiles smoothly. When I go to the other page: ./secondPage, I get the error: Error: . is neither a posix nor a windows path, and there is no 'join' method defined in the file system at join (C:\...\node_modules\next\dist\compiled\webpack\bundle5.js:28:1369027)
at C:\...\node_modules\next\dist\compiled\webpack\bundle5.js:28:293178
at arrayEachIndex (C:\...\node_modules\next\dist\compiled\neo-async\async.js:1:7165)
at Object.map (C:\...\node_modules\next\dist\compiled\neo-async\async.js:1:9971)
at Array.<anonymous> (C:\...\node_modules\next\dist\compiled\webpack\bundle5.js:28:293153)
at runCallbacks (C:\...\node_modules\next\dist\compiled\webpack\bundle5.js:1:168123)
at C:\...\node_modules\next\dist\compiled\webpack\bundle5.js:1:170035
at C:\...\node_modules\next\dist\compiled\webpack\bundle5.js:1:269268
at FSReqCallback.oncomplete (node:fs:189:23) The error isn't in the code, as I copied and pasted the code in the folders and simply changed the directory name. And the code also compiles perfectly on vercel. Does anyone have any ideas about what happened?