Skip to content
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

Migration with codemod give Error: The flag --transform can only be set once. #194

Open
imnasnainaec opened this issue Mar 3, 2025 · 0 comments

Comments

@imnasnainaec
Copy link

On a project with react-beautiful-dnd v13.1.1, I'm trying out the migration steps from https://atlassian.design/components/pragmatic-drag-and-drop/optional-packages/react-beautiful-dnd-migration/about...

  1. npm i @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
  • fine
  1. npx @atlaskit/codemod-cli --parser {tsx|babylon} --extensions ts,tsx,js src/goals/MergeDuplicates/MergeDupsStep/MergeDragDrop/
  • error
Error: The flag --transform can only be set once.
    at validateFlags (~\AppData\Local\npm-cache\_npx\1c2e1521d81af2d5\node_modules\meow\index.js:93:10)
    at meow (~\AppData\Local\npm-cache\_npx\1c2e1521d81af2d5\node_modules\meow\index.js:204:2)
    at _callee$ (~\AppData\Local\npm-cache\_npx\1c2e1521d81af2d5\node_modules\@atlaskit\codemod-cli\dist\cjs\cli.js:23:35)
    at tryCatch (~\AppData\Local\npm-cache\_npx\1c2e1521d81af2d5\node_modules\@babel\runtime\helpers\regeneratorRuntime.js:45:16)
    at Generator.<anonymous> (~\AppData\Local\npm-cache\_npx\1c2e1521d81af2d5\node_modules\@babel\runtime\helpers\regeneratorRuntime.js:133:17)
    at Generator.next (~\AppData\Local\npm-cache\_npx\1c2e1521d81af2d5\node_modules\@babel\runtime\helpers\regeneratorRuntime.js:74:21)
    at asyncGeneratorStep (~\AppData\Local\npm-cache\_npx\1c2e1521d81af2d5\node_modules\@babel\runtime\helpers\asyncToGenerator.js:3:17)
    at _next (~\AppData\Local\npm-cache\_npx\1c2e1521d81af2d5\node_modules\@babel\runtime\helpers\asyncToGenerator.js:17:9)
    at ~\AppData\Local\npm-cache\_npx\1c2e1521d81af2d5\node_modules\@babel\runtime\helpers\asyncToGenerator.js:22:7
    at new Promise (<anonymous>)
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

2 participants
@imnasnainaec and others