Skip to content

Error: react/rename-unsafe-lifecycles command could not be recognized #329

Open

Description

@shubhraagarwal

While running the command npx codemod react/rename-unsafe-lifecycles --target <path> I'm getting the following response
image

Even though this solution Originally posted by @parthakshay in #254 (comment) works, either the command given in the documentation needs to be fixed or the documentation should be updated.

Happy to take this issue up and raise a PR for this

Activity

  1. mohab-sameh commented on Dec 31, 2024

    @mohab-sameh
    Contributor

    Hi @shubhraagarwal. Thanks for catching and reporting this! If we can adapt rename-unsafe-lifecycles to codemod CLI and publish it to Codemod Registry so that the command in the readme works, that would be great. Otherwise, we can raise a PR to update the doc.

  2. shubhraagarwal commented on Jan 2, 2025

    @shubhraagarwal
    Author

    working on this, will publish it to codemod registry

  3. mohab-sameh commented on Jan 6, 2025

    @mohab-sameh
    Contributor

    @shubhraagarwal If you used the existing transform in this repository, then please open the PR under codemod-com/commons and it will get published to the registry. However, if you made a new codemod from scratch, then you can use codemod-template and put your codemod there, then publishing it to the registry under your name.

  4. shubhraagarwal commented on Jan 8, 2025

    @shubhraagarwal
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions