Skip to content

[codemod] npx can't find any codemods #45445

Closed
@Maxastuart

Description

@Maxastuart

Steps to reproduce

Steps:

  1. nvm use 14.18
  2. npx @mui/codemod@next v7.0.0/grid-props src

Current behavior

npx: installed 160 in 5.459s
(node:72946) UnhandledPromiseRejectionWarning: Error: Transform 'v7.0.0/grid-props' not found. Check out /home/max/.npm/_npx/72946/lib/node_modules/@mui/codemod/README.md for a list of available codemods.
    at runJscodeshiftTransform (/home/max/.npm/_npx/72946/lib/node_modules/@mui/codemod/codemod.js:41:13)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:72946) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:72946) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Expected behavior

readme & package.json say compatible with node >=14.0.0, so I expect the codemod to run in 14.18.3 like all the others

Context

tracked issue to PR #45381 @DiegoAndai @aarongarciah

Your environment

npx @mui/envinfo
  System:
    OS: Linux 5.15 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
  Binaries:
    Node: 14.18.3 - ~/.nvm/versions/node/v14.18.3/bin/node
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.3/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
  npmPackages:
    @mui/base:  5.0.0-beta.69 
    @mui/icons-material: ^7.0.0-beta.2 => 7.0.0-beta.2 
    @mui/lab: ^7.0.0-beta.5 => 7.0.0-beta.5 
    @mui/material: ^7.0.0-beta.2 => 7.0.0-beta.2 
    @mui/private-theming:  7.0.0-beta.2 
    @mui/styles: ^7.0.0-beta.2 => 7.0.0-beta.2 
    @mui/system:  7.0.0-beta.2 
    @mui/utils:  7.0.0-beta.2 
    @mui/x-data-grid:  8.0.0-alpha.12 
    @mui/x-data-grid-premium: ^8.0.0-alpha.12 => 8.0.0-alpha.12 
    @mui/x-data-grid-pro:  8.0.0-alpha.12 
    @mui/x-date-pickers:  6.20.2 
    @mui/x-date-pickers-pro: ^6.20.2 => 6.20.2 
    @types/react: ^16.9.49 => 16.14.5 

Search keywords: codemod grid-props

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions