Next.js Discord

Discord Forum

Nextjs codemod typeerror when upgrading to v15 (transform.js does not exist)

Unanswered
Alvin Joy posted this in #help-forum
Open in Discord
Avatar
Executing command: jscodeshift --no-babel --ignore-pattern=**/node_modules/** --ignore-pattern=**/.next/** --extensions=tsx,ts,jsx,js --transform C:\Users\apjpu\AppData\Local\npm-cache\_npx\6a090669e21b4303\node_modules\@next\codemod\transforms\app-dir-runtime-config-experimental-edge.js C:\dev\projects\GitHub\Hive
ERROR Transform file C:\dev\projects\GitHub\Hive\transform.js does not exist 
TypeError: Cannot read properties of undefined (reading 'endsWith')
    at runTransform (C:\Users\apjpu\AppData\Local\npm-cache\_npx\6a090669e21b4303\node_modules\@next\codemod\bin\transform.js:144:23)       
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrade (C:\Users\apjpu\AppData\Local\npm-cache\_npx\6a090669e21b4303\node_modules\@next\codemod\bin\upgrade.js:262:9)      
    at async Command.<anonymous> (C:\Users\apjpu\AppData\Local\npm-cache\_npx\6a090669e21b4303\node_modules\@next\codemod\bin\next-codemod.js:51:9)

4 Replies

Avatar
help
Avatar
Asian black bear
Please stop bumping your post repeatedly, you're only allowed to do so once a day.
Avatar
oh I'm sorry i didnt know that
Avatar
help