import HTML5Backend from 'react-dnd-html5-backend';
Although the webpack build completes successfully, on running, the following error is shown in the browser console.
main.cf54330….js:1 Dynamic page loading failed TypeError: Cannot read property 'call' of undefined
at t (main.cf54330….js:1)
at Object../node_modules/react-dnd-html5-backend/lib/HTML5Backend.js (0.b342625….chunk.js:12)
at t (main.cf54330….js:1)
at Object../node_modules/react-dnd-html5-backend/lib/index.js (0.b342625….chunk.js:12)
at t (main.cf54330….js:1)
at Object../app/containers/ReportingView/index.js (0.b342625….chunk.js:1)
at t (main.cf54330….js:1)
at Object../app/containers/HomePage/index.js (0.b342625….chunk.js:1)
at t (main.cf54330….js:1)
There seems to be an error importing
HTML5Backend
Here's my babel config in package.jsonAnd here's the webpack.config.js file
I've imported Html5Backend as shown in the docs
import HTML5Backend from 'react-dnd-html5-backend';
Although the webpack build completes successfully, on running, the following error is shown in the browser console.