react-addons-shallow-compare missing after upgrading to 2.3.1
See original GitHub issueJust upgraded to the latest version of the repo, after clearing node modules and running npm install I get this error when the react native package manager is bundling my app:
error: bundling: UnableToResolveError: Unable to resolve module `react-addons-shallow-compare` from `/Applications/XAMPP/xamppfiles/htdocs/SiequenceRNApp/node_modules/react-native-snap-carousel/index.js`: Module does not exist in the module map or in these directories:
/Applications/XAMPP/xamppfiles/htdocs/SiequenceRNApp/node_modules
, /Applications/XAMPP/xamppfiles/htdocs/node_modules
{
"name": "Test",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native-scripts start",
"test": "jest"
},
"dependencies": {
"expo": "^18.0.3",
"native-base": "~2.1.4",
"react": "16.0.0-alpha.12",
"react-native": "0.45.1",
"react-native-circular-slider": "^1.0.1",
"react-native-fetch-blob": "^0.10.5",
"react-native-image-crop-picker": "^0.13.1",
"react-native-router-flux": "^3.39.1",
"react-native-snap-carousel": "^2.3.1"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "1.9.2",
"jest": "20.0.3",
"jest-expo": "~18.0.0",
"react-test-renderer": "16.0.0-alpha.6",
"react-native-scripts": "0.0.40"
},
"jest": {
"preset": "react-native"
}
}
I’m running on a Mac, node version 7.7.1 & npm version 5.0.4
Any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
react-addons-shallow-compare missing after upgrading to 2.3.1
I'm about to downgrade to the previous version 2.3.0 and run a fresh npm install, after removing react-addons-shallow-compare from my project's ...
Read more >react-addons-shallow-compare - npm
Start using react-addons-shallow-compare in your project by running `npm i react-addons-shallow-compare`. There are 737 other projects in ...
Read more >Could not resolve dependency error peer react@"^16.8.0
While trying to install npm install , I am getting below error, could someone please advise, what is the best approach to resolve...
Read more >Shallow Compare - React
shallowCompare returns true if the shallow comparison for props or state fails and therefore the component should update.
Read more >react-geosuggest/CHANGELOG.md - UNPKG
234, from npm saying that the peer dependency for react 0.15 (specified by. 235, react-addons-shallow-compare) is missing. This completely breaks.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @fendorio,
Thank you for your investigation! I’m surprised because I’ve been using version 2.3.1 on miscellaneous projects without any issue. Moreover, there wasn’t any update linked to dependencies in 2.3.1…
Would you mind clearing your
nodes_modules
folder and try to install your dependencies with Yarn instead ofnpm
?Closing as no further feedback was provided.
Feel free to reopen if needed.