Attempted import error: 'PreviewManager' is not exported from 'dnd-multi-backend'.
See original GitHub issueHello there.
I’m trying to build a react application with these dependencies:
“react-dnd-html5-backend”: “10.0.2” “react-dnd-multi-backend”: “5.0.0” “react-dnd-touch-backend”: “10.0.2”
The build scripts throw this error:
Creating an optimized production build...
Failed to compile.
./node_modules/react-dnd-multi-backend/dist/esm/Preview.js
Attempted import error: 'PreviewManager' is not exported from 'dnd-multi-backend'.
I took a look at the dependency tree and react-dnd-multi-backend requires “dnd-multi-backend”: “^5.0.0”. Maybe the last version v5.0.2 introduces this issue? Thank you so much.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Receiving "Attempted import error:" in react app - Stack Overflow
import combineReducers from '../../store/reducers';. since it's a default export, and not a named export. There's a good breakdown of the differences ...
Read more >How to Fix Attempted Import Error Switch is Not Exported From ...
Command:- npm install react-router-dom@5.3.0In This Video We Will See How to Fix Attempted Import Error Switch is Not Exported From ...
Read more >attempted import error is not exported from - You.com
On upgrading the version of Ant Design to v4, one of the major breaking changes have been that Icon is no longer exported...
Read more >Attempted import error: 'freeze' is not exported from ... - GitHub
module.js Attempted import error: 'freeze' is not exported from 'immer' (imported as 'r').
Read more >'useGlobalTheme' is not exported from '@atlaskit/theme ...
node_modules/@atlaskit/blanket/dist/esm/blanket.js Attempted import error: 'useGlobalTheme' is not exported from '@…
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Actually, it should have been
6.0.0as there are breaking changes… Anyway, after a few publishes andnpm deprecate, installingreact-dnd-multi-backend@5.0.0will yield youdnd-multi-backend@5.0.1which are compatible.Sorry for the confusion! Note that from
react-dnd-multi-backendperspective, the only changes between5.0.1and6.0.0is a newDndProvidercomponent and ausePreviewhook, no breaking changes.If you can confirm everything is working as expected, that would be greatly appreciated 😃
Hi @nan140114,
Ugh, I didn’t think of that at all! I will unpublish the 5.0.2 and republish it as 5.1.0 (as it should have been from the beginning).
Sorry about that!