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

Error message: Cannot find module 'lodash/cloneDeep' #5439

Open
MSchusterDcb opened this issue Mar 2, 2018 · 6 comments
Open

Error message: Cannot find module 'lodash/cloneDeep' #5439

MSchusterDcb opened this issue Mar 2, 2018 · 6 comments
Assignees
Labels

Comments

@MSchusterDcb
Copy link

Do you want to request a feature or report a bug?
Report a bug

What is the current behavior?
I have an app created with "react-create-start", with the following dependencies:
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.1.0",
"sjcl": "^1.0.7",
"start": "^5.1.0"
},

The app runs well on windows 10 machines, but when I run it with "yarn start" on a Windows 8 machine, I get the following error:
"./src/index.js
Module build failed: Error: Cannot find module 'lodash/cloneDeep'"

The error does not occur, when I use npm on this machine ("npm install, "npm start").

I tried to update the dependencies to the following. but the error still occurs:

"dependencies": {
"lodash.clonedeep": "^4.5.0",
"lodash.omit": "^4.5.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.1.0",
"sjcl": "^1.0.7",
"start": "^5.1.0"
},

What is the expected behavior?
The same behavior as on Windows 10 machines or running with npm: The app should start without error message.

Please mention your node.js, yarn and operating system version.
yarn --version: 1.5.1
node --version: v8.9.4 (64 bit)
OS: Windows 8.1. pro, 64 bit

@ghost ghost assigned rally25rs Mar 2, 2018
@ghost ghost added the triaged label Mar 2, 2018
@ngohungphuc
Copy link

Same issue here

@tuliomarchetto
Copy link

tuliomarchetto commented Apr 16, 2018

Same issue here, if I install with npm i everything works fine, but if I run yarn on the my Ionic project it doesn't start and tells that it can't find the loadsh module.
Yarn 1.5.1, Node 8.10.0 on macOS High Sierra.

@ngohungphuc
Copy link

Confirm issue happend with Yarn 1.5.1,

@jerguslejko
Copy link

Stumbled upon the same issue. Deleting ~/.cache/yarn (on macos) helped.

@ramjak
Copy link

ramjak commented Aug 20, 2019

Is this issue already solved? I am using 1.17.3, and there is no problem at all. But, my production is using v1.5.2 and the problem still exists. Can someone confirm this?

@jplindstrom
Copy link

jplindstrom commented Nov 12, 2019

Stumbled upon the same issue. Deleting ~/.cache/yarn (on macos) helped.

Drive-by comment in 2019 to highlight that this worked for me too (Ubuntu 14). I missed this when googling the first time around, so worth highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants