Steps to reproduce
Steps:
- Excute the command
npx @mui/codemod@latest deprecations/accordion-props "src/**/*.jsx"
- You get the error
Error: Transform 'deprecations/accordion-props' not found
- The same happens with the other codemods
Current behavior
Hi folks,
if I execute the following command:
npx @mui/codemod@latest deprecations/accordion-props "src/**/*.jsx"
then I get the following error
/Users/xyz/.npm/_npx/2aacf93ee2439f59/node_modules/@mui/codemod/codemod.js:34
throw new Error(`Transform '${transform}' not found. Check out ${path.resolve(__dirname, './README.md for a list of available codemods.')}`);
^
Error: Transform 'deprecations/accordion-props' not found. Check out /Users/xyz/.npm/_npx/2aacf93ee2439f59/node_modules/@mui/codemod/README.md for a list of available codemods.
at runJscodeshiftTransform (/Users/xyz/.npm/_npx/2aacf93ee2439f59/node_modules/@mui/codemod/codemod.js:34:13)
Node.js v24.19.0
It works with version 9.1.0:
npx @mui/codemod@9.1.0 deprecations/accordion-props "src/**/*.jsx"
Expected behavior
It should work the same way it worked with version 9.1.0
Context
Migration to MUI 9
Your environment
npx @mui/envinfo
System:
OS: macOS 26.6
Binaries:
Node: 24.19.0 - /usr/local/bin/node
npm: 11.17.0 - /usr/local/bin/npm
pnpm: Not Found
Browsers:
Chrome: 150.0.7871.187
Edge: Not Found
Firefox: 151.0.4
Safari: 26.6
npmPackages:
@base-ui/utils: 0.3.1
@emotion/react: ^11.14.0 => 11.14.0
@emotion/styled: ^11.14.1 => 11.14.1
@mui/core-downloads-tracker: 9.3.0
@mui/icons-material: ^9.3.0 => 9.3.0
@mui/lab: 9.0.0-beta.7 => 9.0.0-beta.7
@mui/material: ^9.3.0 => 9.3.0
@mui/private-theming: 9.3.0
@mui/styled-engine: 9.3.0
@mui/system: ^9.3.0 => 9.3.0
@mui/types: 9.3.0
@mui/utils: 9.2.0
@mui/x-data-grid: 9.10.1
@mui/x-data-grid-premium: ^9.10.1 => 9.10.1
@mui/x-data-grid-pro: 9.10.1
@mui/x-date-pickers: 9.10.1
@mui/x-date-pickers-pro: ^9.10.1 => 9.10.1
@mui/x-internal-exceljs-fork: 5.0.0
@mui/x-internals: 9.10.1
@mui/x-license: ^9.10.1 => 9.10.1
@mui/x-telemetry: 9.10.0
@mui/x-virtualizer: 0.6.2
@types/react: ^19.2.18 => 19.2.18
react: ^19.2.8 => 19.2.8
react-dom: ^19.2.8 => 19.2.8
Search keywords: codemod mui
Steps to reproduce
Steps:
npx @mui/codemod@latest deprecations/accordion-props "src/**/*.jsx"Error: Transform 'deprecations/accordion-props' not foundCurrent behavior
Hi folks,
if I execute the following command:
npx @mui/codemod@latest deprecations/accordion-props "src/**/*.jsx"then I get the following error
/Users/xyz/.npm/_npx/2aacf93ee2439f59/node_modules/@mui/codemod/codemod.js:34 throw new Error(`Transform '${transform}' not found. Check out ${path.resolve(__dirname, './README.md for a list of available codemods.')}`); ^ Error: Transform 'deprecations/accordion-props' not found. Check out /Users/xyz/.npm/_npx/2aacf93ee2439f59/node_modules/@mui/codemod/README.md for a list of available codemods. at runJscodeshiftTransform (/Users/xyz/.npm/_npx/2aacf93ee2439f59/node_modules/@mui/codemod/codemod.js:34:13) Node.js v24.19.0It works with version 9.1.0:
npx @mui/codemod@9.1.0 deprecations/accordion-props "src/**/*.jsx"Expected behavior
It should work the same way it worked with version 9.1.0
Context
Migration to MUI 9
Your environment
npx @mui/envinfoSearch keywords: codemod mui