Closed obecker closed 3 weeks ago
Good news, you just need to update your import path
- import {draggable} from "@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter";
+ import {draggable} from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
Did your editor make this import for you? If so, which one? I wonder if we could do more to help the editor choose the right import
Oh my 🤦♂️ ... thanks!
Yes, the import was created by IntelliJ Ultimate.
When trying to experiment with pragmatic-drag-and-drop I stumbled upon this (what seems to me very basic) problem.
Environment: Node v21.7.3, NPM 10.5.2
To reproduce the issue I started a new vite project using the
react-swc-ts
template:The created project uses TypeScript ^5.2.2 and vite ^5.2.0.
Then I installed the pragmatic-drag-and-drop dependency:
and added the following import to the generated
src/App.tsx
file:Running
then prints this error message:
Do I need to separately install some types for pragmatic-drag-and-drop?