-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Comments
Same issue here |
Same issue here, if I install with |
Confirm issue happend with Yarn 1.5.1, |
Stumbled upon the same issue. Deleting |
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? |
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. |
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
The text was updated successfully, but these errors were encountered: