Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-element-to-jsx could not be recognized #327

Open
Rahmanism opened this issue Dec 9, 2024 · 3 comments · Fixed by codemod-com/commons#14
Open

create-element-to-jsx could not be recognized #327

Rahmanism opened this issue Dec 9, 2024 · 3 comments · Fixed by codemod-com/commons#14

Comments

@Rahmanism
Copy link

Hi,

Running this command

codemod react/create-element-to-jsx --target ./src

I get this error:

The specified command or codemod name could not be recognized. ...

I searched the create-element-to-jsx in the codemod registry and didn't find anything. Is it removed? Will it be back?

Thank you.

@mohab-sameh
Copy link
Contributor

@Rahmanism thanks for reporting this! @amirabbas-gh can you take a look?

@alexbit-codemod
Copy link

thanks for reporting this issue @Rahmanism. i published the codemod to the registry and you can run it via:
npx codemod@latest react/create-element-to-jsx

also link to the registry:
https://codemod.com/registry/react-create-element-to-jsx

this issue can be closed. cc @rickhanlonii

@alexbit-codemod
Copy link

Big thanks to @amirabbas-gh for adding more test cases, docs, and metadata to this codemod! I'm coordinating with @rickhanlonii to bring such contributions into this repo. In the meantime, here’s the source and extra test fixtures Amirabbas worked on: GitHub Link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants