question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attempted import error: 'PreviewManager' is not exported from 'dnd-multi-backend'.

See original GitHub issue

Hello 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LouisBrunnercommented, May 5, 2020

Actually, it should have been 6.0.0 as there are breaking changes… Anyway, after a few publishes and npm deprecate, installing react-dnd-multi-backend@5.0.0 will yield you dnd-multi-backend@5.0.1 which are compatible.

Sorry for the confusion! Note that from react-dnd-multi-backend perspective, the only changes between 5.0.1 and 6.0.0 is a new DndProvider component and a usePreview hook, no breaking changes.

If you can confirm everything is working as expected, that would be greatly appreciated 😃

1reaction
LouisBrunnercommented, May 5, 2020

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found