pragmatic-drag-and-drop icon indicating copy to clipboard operation
pragmatic-drag-and-drop copied to clipboard

The codemod client doesn't appear to give an option for adoption-from-rbd-13

Open shifoc opened this issue 1 year ago β€’ 15 comments

npx @atlaskit/codemod-cli --parser {tsx|babylon} --extensions ts,tsx,js

I am getting this message

πŸ“š Atlassian-Frontend codemod library @ 0.26.3 πŸ“š No codemods available. Please make sure you have the latest version of the packages you are trying to upgrade before running the codemod

I have already installed @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration

shifoc avatar Nov 25 '24 11:11 shifoc

Yes, I have the same issue…

Mara-Li avatar Dec 01 '24 14:12 Mara-Li

Have you tried using @latest? npx @atlaskit/codemod-cli@latest

alexreardon avatar Dec 05 '24 02:12 alexreardon

πŸ“š Atlassian-Frontend codemod library @ 0.27.0 πŸ“š No codemods available. Please make sure you have the latest version of the packages you are trying to upgrade before running the codemod

shifoc avatar Dec 09 '24 21:12 shifoc

I have the same issue. Tried to use latest as alexreardon suggested but nothing changed

Albert-Mv avatar Dec 15 '24 22:12 Albert-Mv

Any news?

dersia avatar Feb 22 '25 14:02 dersia

Hey folks, just to confirm:

  1. You have added @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration as a package dependency (as per https://atlassian.design/components/pragmatic-drag-and-drop/optional-packages/react-beautiful-dnd-migration/code)
  2. From your package root, you have run:
npx @atlaskit/codemod-cli --parser tsx --extensions ts,tsx,js [relativePath]

e.g.

npx @atlaskit/codemod-cli --parser tsx --extensions ts,tsx,js ./src

I tried reproducing this, and I can see this list of codemods:

Image

The one you'd want is @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration: 0.1.0-adoption-from-rbd-13.

If you're still having issues, can you send a screenshot of what you're seeing?

michaelabrahamian avatar Feb 26 '25 05:02 michaelabrahamian

same issue

lin-mt avatar Mar 04 '25 07:03 lin-mt

just same issue

version info

  • react: 18.3.1
  • @atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration: 2.0.2
  • npm: 10.5.0
  • npx: 10.5.0

add package Image

and run Image

nulzi avatar Mar 27 '25 07:03 nulzi

@michaelabrahamian same issue

volodymyr88khimyak avatar Apr 02 '25 08:04 volodymyr88khimyak

same issue... any update?

tomax521 avatar Apr 12 '25 09:04 tomax521

Same issue.

imnasnainaec avatar Jun 11 '25 21:06 imnasnainaec

For anyone else with this issue, I found the same when working in a monorepo. I assumed I'd need to carry out this procedure in my storybook package where the react-beautiful-dnd library was being used.

Instead I tried this from the project root, and gave it the full path to the src folder in my storybook package. This then correctly gave me the option to use the required migrations:

@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration: utils
@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration: 0.1.0-adoption-from-rbd-13
@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration: 0.1.0-adoption-from-rbd-12

e.g. yarn dlx @atlaskit/codemod-cli --parser tsx --extensions ts,tsx,js packages/storybook/src

dominicsayers avatar Jun 12 '25 10:06 dominicsayers

same issue

kseley avatar Jun 14 '25 18:06 kseley

same issue

tehilamehudar avatar Aug 29 '25 07:08 tehilamehudar

same issue

hoanglt1223 avatar Sep 18 '25 03:09 hoanglt1223