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

React dnd upgrade #927

Open
rana-bazil opened this issue Apr 12, 2022 · 2 comments
Open

React dnd upgrade #927

rana-bazil opened this issue Apr 12, 2022 · 2 comments

Comments

@rana-bazil
Copy link

react-dnd has been upgraded to v16.0.0 and that is causing issues with the current code base

@NickEmpetvee
Copy link

NickEmpetvee commented Apr 16, 2022

@rana-bazil are you seeing something like the below?

ERROR in ./node_modules/react-dnd/dist/core/DndProvider.js 28:0-48
Module not found: Error: Can't resolve 'react/jsx-runtime' in '/Users/xyz/Desktop/xxxxxxxxx/node_modules/react-dnd/dist/core'
Did you mean 'jsx-runtime.js'?

If so, in the react-dnd issues area see this issue for a solution. It's partly in Chinese but Google Translate changes the answer to this:

In the react-dnd/core/DndProvider.js file, change import { jsx as _jsx } from "react/jsx-runtime"; to import { jsx as _jsx } from "react/jsx-runtime.js";

@danroberts
Copy link

In addition, {DragSource} is no longer part of the exported api in v16.0.0.

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

3 participants