Skip to content

codemod@latest not actually running react/19/migration-recipe #76

Description

@jbrz

Issue Description

  • Bug in Codemod CLI

Having fiddled with the settings and the run environment, this seems like it must surely be a bug, but I'm happy to be told otherwise - just not sure how a relatively-new-migration-version codemod could be legacy and only able to run on a far-in-the-past version.

Steps to Reproduce

  1. npx codemod@latest react/19/migration-recipe
  2. question life

Actual Results

Need to install the following packages:
codemod@1.0.1
Ok to proceed? (y) y

[1/2] 🔍 Resolving package from registry: https://app.codemod.com ...
⚠️ Package react/19/migration-recipe is legacy
[2/2] 🏁 Running codemod: react/19/migration-recipe
Need to install the following packages:
codemod@0.18.9
Ok to proceed? (y) y
╭──────────────────────────────────────────────╮
│                                              │
│       Update available 0.18.9 > 1.0.1        │
│                                              │
│   Run "npm i -g codemod@latest" to upgrade   │
│                                              │
╰──────────────────────────────────────────────╯
✔ Successfully downloaded "react/19/migration-recipe" from the registry.

Expected Results

  • Resolving package from registry
  • Running codemod: react/19/migration-recipe
  • "successfully downloaded[/fetched]..."
  • executed codemod

Technical details

  • Codemod CLI version: ???
  • Node.js versions: 18.20.8, 20.19.4, 22.17.1, 24.4.1

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