Next.js Discord

Discord Forum

codemod unable to apply "latest" on NextJS 16.2.0 -> 16.3.3

Unanswered
Gharial posted this in #help-forum
Open in Discord
GharialOP
Pretty self explanatory, honestly. I have a NextJS 16.2.0 project using Bun that cannot seem to execute codemods due to an invalid version matching?

npx @next/codemod@latest upgrade latest
npm notice run private-project@0.1.0 npx
npm notice run codemod upgrade latest
Invalid revision provided: "latest" (resolved to "latest"). Please provide a valid Next.js version, dist-tag (e.g. "latest", "canary", "rc"), or upgrade type ("patch", "minor", "major").
Check available versions at https://www.npmjs.com/package/next?activeTab=versions.

1 Reply

GharialOP
I am not sure what is causing this as it is a valid version.