-
Notifications
You must be signed in to change notification settings - Fork 52
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
Invariant Violation: Expected drag drop context #59
Comments
First of all, you should first confirm whether the DndProvider is used in the upper component and the correct attributes are passed |
我也出现了这个问题,我使用的是pnpm install,我的项目里面的确有vueuse |
可以检查一下,看看是不是安装了两个不同版本的vue |
你这段代码出现这个的原因在于,你的DndProvider没有放到上层组件,或者你把drop封装成一个单独的组件,DndProvider和useDrop/useDrag/useDragLayer在同一个组件内时,确实会出现这种问题,原因是provider和inject找的是上层组件,而不是当前组件 @LIUSHUAI2018 |
ok了 |
Why do I use dnd to report an error in my application, is there a problem with the usage method, and how can I adjust it?
The text was updated successfully, but these errors were encountered: