Skip to content

Some codemod commands in the README.md cause errors and can't be run #337

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

Open
shsatovg opened this issue May 19, 2025 · 0 comments
Open

Comments

@shsatovg
Copy link

Overview

Some codemod commands in README.md cause errors and can't be run.
The commands that cause errors include pure-render-mixin, error-boundaries, and findDOMNode. For more details, please refer to the section ### Codemod Registry Status.

How to Reproduce the Error and Examples

This is how to reproduce the error and examples:

$ npx codemod react/pure-render-mixin --target src

× Fetching "react/pure-render-mixin"...
The specified command or codemod name could not be recognized.
To view available commands, execute "codemod --help".
To see a list of existing codemods, run "codemod search" or "codemod list" with a query representing the codemod you are looking for.

Why the Error Happens

The codemod command might not be listed in the Codemod Registry.

Codemod Registry Status

Here’s a simple table showing if each codemod is in the registry:

Codemod Name Is it in the Registry?
remove-context-provider Yes
remove-forward-ref Yes
use-context-hook Yes
replace-act-import Yes
replace-string-ref Yes
replace-use-form-state Yes
replace-reactdom-render Yes
create-element-to-jsx Yes
error-boundaries No
findDOMNode No
manual-bind-to-arrow No
pure-component No
pure-render-mixin No
React-PropTypes-to-prop-types No
rename-unsafe-lifecycles Yes
react-to-react-dom No
React-DOM-to-react-dom-factories No
ReactNative-View-propTypes No
update-react-imports Yes

What We Want

Please add the codemods that are not in the registry. If you can't do that, please change the document to show which ones are missing.

References

Related past ISSUES include:

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

No branches or pull requests

1 participant