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

createBackend is not a function #1232

Closed
redochka opened this issue Feb 27, 2019 · 8 comments
Closed

createBackend is not a function #1232

redochka opened this issue Feb 27, 2019 · 8 comments

Comments

@redochka
Copy link

redochka commented Feb 27, 2019

Just following the documentation, i am faced with this error: createBackend is not a function

See this codesandbox: https://codesandbox.io/s/10rjqx9wq7

Thanks

@gustavohenke
Copy link
Contributor

The import HTML5Backend doesn't exist in react-dnd-html5-backend.
You should be doing the following instead:

import HTML5Backend from 'react-dnd-html5-backend';

@redochka
Copy link
Author

redochka commented Mar 5, 2019

@gustavohenke Thank you so much.

@redochka redochka closed this as completed Mar 5, 2019
@ix1024
Copy link

ix1024 commented Jul 17, 2020

import {HTML5Backend } from 'react-dnd-html5-backend';

@Domiii
Copy link

Domiii commented Sep 19, 2021

@lengjh is right. In the current version, it is exposed as named export, not as default export:

import { HTML5Backend } from "react-dnd-html5-backend";

See here for reference, on how to import it.

@murtuzaalisurti
Copy link

still getting the issue, tried both ways

@murtuzaalisurti
Copy link

solved!

@HanTengfeifei
Copy link

???

@AzlanCrypt
Copy link

import HTML5Backend from 'react-dnd-html5-backend';
This works for me!!

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

7 participants