Next.js Discord

Discord Forum

new-link codemod is doing the opposite...

Unanswered
neon posted this in #help-forum
Open in Discord
OK this is weird, but I thought the new-link codemod (npx @next/codemod@latest new-link .) was supposed to remove the legacyBehavior prop from all Links, however it's done quite the opposite, i.e. added legacyBehavior prop to all my links...

Here is a small part of my console which shows this unexpected behavior:
https://pastebin.com/2LJVwqnY

0 Replies