Next.js Discord

Discord Forum

How do you run codemods?

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
Following the docs from here: https://nextjs.org/docs/app/guides/upgrading/version-16#using-the-codemod I thought that running npx @next/codemod@canary upgrade latest would actually do everything that's written:
Update next.config.js to use the new turbopack configuration
Migrate from next lint to the ESLint CLI
Migrate from deprecated middleware convention to proxy
Remove unstable_ prefix from stabilized APIs
Remove experimental_ppr Route Segment Config from pages and layouts


but the only thing it did was update the nextjs version in the package.json lol... Is there a way to run the codemod so it actually migrates everything the docs say it will?

0 Replies