@refinedev/codemod refine3-to-refine4 npx error

Trying to run the migration to refine4 (looks great by the way) and I get the error sh: codemod: command not found. npx @refinedev/codemod refine3-to-refine4 This is the command I am running, and I also tried to globally install @refinedev/codemod with no luck. Quick search on github shows this issue occurred previously, in July 2022 but it was implied that a fix had been merged. Am I doing anything wrong?
6 Replies
kapa.ai
kapa.ai2y ago
Hey @Devious! I'm the kapa.ai support bot. I've searched through the docs to try to answer your question. :wave:
kapa.ai
kapa.ai2y ago
---------------------- It looks like you're trying to run the refine3-to-refine4 codemod, which is part of the @pankod/refine-codemod package. According to the Migrating your project automatically with refine-codemod (https://refine.dev/docs/api-reference/antd/migration-guide/v4-to-v5#migrating-your-project-automatically-with-refine-codemod-%E2%9C%A8) section of the Refine API Reference, you should be running the command npx @pankod/refine-codemod antd4-to-antd5 instead. If you're still having trouble, you can check out the refine-codemod repository (https://github.com/refinedev/refine/tree/master/packages/codemod) on GitHub for more information. ----------------------
GitHub
refine/packages/codemod at master · refinedev/refine
Build your React-based CRUD applications, without constraints. - refine/packages/codemod at master · refinedev/refine
Migration Guide | refine
Ant Design released a new major version as a v5. This document will help you upgrade from antd 4.x version to antd 5.x version.
kapa.ai
kapa.ai2y ago
<@333996895850594305> kapa.ai is still learning and improving, please let us how it did by reacting below
quickest-silver
quickest-silver2y ago
I am on node v18.14.2 and npm 9.5.0 (MacOS 13.2)
optimistic-gold
optimistic-gold2y ago
Hello @Devious We are releasing a fix for this issue For now, you can run npx @refinedev/codemod@next refine3-to-refine4
quickest-silver
quickest-silver2y ago
That worked, thank you