clauderic / dnd-kit

The modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
http://dndkit.com
MIT License
13.2k stars 656 forks source link

Support React 19 & Nextjs 15 #1511

Open downright-development opened 4 weeks ago

downright-development commented 4 weeks ago

Hey friends!

Love the project but prevents me from going to Nextjs 15 & react 19.

Any timeline on when dependencies will be updated to support react 19?

downright-development commented 3 weeks ago

Ping :) Been a week without any feedback. Any way we can help?

muhaimincs commented 2 weeks ago
Type error: 'SortableContext' cannot be used as a JSX component.
  Its type '({ children, id, items: userDefinedItems, strategy, disabled: disabledProp, }: Props) => Element' is not a valid JSX element type.
    Type '({ children, id, items: userDefinedItems, strategy, disabled: disabledProp, }: Props) => Element' is not assignable to type '(props: any) => ReactNode'.
      Type 'Element' is not assignable to type 'ReactNode'.
lucarampi commented 3 days ago

try npm i --force or npm i --legacy-peer-deps, it might do the trick