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.

Module not found: Error: Can't resolve 'redux/lib/createStore' in '/dnd-core/lib'

See original GitHub issue

I’m using “redux”: “4.0.0” and the following error occurred when I implemented yarn start to build.

Here is the error message. ERROR in ./node_modules/dnd-core/lib/DragDropManager.js Module not found: Error: Can't resolve 'redux/lib/createStore' in '/Users/moh/sites/wynd/back_office/node_modules/dnd-core/lib' @ ./node_modules/dnd-core/lib/DragDropManager.js 9:19-51 @ ./node_modules/dnd-core/lib/index.js @ ./node_modules/react-dnd/lib/DragDropContext.js @ ./node_modules/react-dnd/lib/index.js @ ./node_modules/react-sortable-tree/dist/main.js @ ./app/Resources/modules/Wynd/StoreModelingBundle/components/tree/index.tsx @ ./app/Resources/modules/Wynd/StoreModelingBundle/components/StoreModeling.tsx @ ./app/Resources/modules/Wynd/StoreModelingBundle/StoreModelingEndPoint.tsx @ ./app/Resources/modules/Wynd/StoreModelingBundle/StoreModelingBundle.ts @ ./app/Resources/modules/AppKernel.ts @ ./app/Resources/modules/app.ts @ ./app/Resources/modules/index.ts @ multi (webpack)-dev-server/client?http://localhost:8080 ./app/Resources/modules/index.ts

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

3reactions
lifejugglercommented, Jun 14, 2018

@medslt, cool I will upgrade the version of the react-dnd after I make sure that there are no breaking changes in the latest update: After looking at the package.json, it has been updated to version 3 and not the 2.6.0 that you mentioned here… I checked that the package-lock.json hasn’t been updated so I will make an update

update#2: Found out that I was totally wrong lol, the dnd-core is at 2.6.0 which definitely needs to be updated to v4, @wuweiweiwu already created #336 to update the react-dnd library so you can check there for progress

1reaction
medsltcommented, Jun 14, 2018

@lifejuggler to replicate the issue you have to use redux 4 in your project, there is a conflict with react-dnd “2.6.0” used by react-sortable-tree, I think to resolve the issue we have to upgrade react-dnd to the last version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module not found: Error: Can't resolve 'redux/lib/createStore' in ...
The following error occurred when I implemented npm i to upgrade dependencies. Here is the error message.
Read more >
why do i get the Error Module not found: Can't resolve 'redux'
Simply installing the react toolkit should fix the problem. # NPM npm install @reduxjs/toolkit # Yarn yarn add @reduxjs/toolkit.
Read more >
Module not found: Can't resolve 'redux' in React | bobbyhadz
To solve the error Module not found: Error: Can't resolve 'redux', make sure to install the `redux` package by opening your terminal in...
Read more >
Error: Can't resolve 'redux/lib/createStore' in '/dnd-core/lib'
Here is the error message. ERROR in /Users/***/demo/node_modules/dnd-core/lib/DragDropManager.js Module not found: Error: Can't resolve ...
Read more >
Module not found: Can't resolve 'react-redux' in - YouTube
Module not found : Can't resolve 'react- redux ' in.
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