Missing dependency `react-addons-shallow-compare`
See original GitHub issueTried pulling this into a project today and I’m getting a build error:
Error: Cannot resolve module 'react-addons-shallow-compare'
Looks like that dependency is used in several of the components, but it’s listed as one of the devDependencies
in package.json
…seems like that needs to be moved to one of the dependencies
so it can be installed for use in production. Am I missing something?
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Missing dependency react-addons-shallow-compare #14
Tried pulling this into a project today and I'm getting a build error: Error: Cannot resolve module 'react-addons-shallow-compare'.
Read more >react-addons-shallow-compare | Yarn - Package Manager
It does this by iterating on the keys of the objects being compared and returning true when the values of a key in...
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 >How to fix missing dependency warning when using useEffect ...
I have this current setup, React hook useEffect runs continuously forever/infinite loop and the only comment is about useCallback() which I'm not familiar...
Read more >autoreact - npm Package Health Analysis | Snyk
Automatic state/view dependency management For more information about how to use this ... Looks like autoreact is missing a security policy.
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
Is there a way to use the traditional npm install process instead of the custom command? It doesn’t seem to line up with other packages out there that just rely on npm install/postinstall etc. I don’t have a specific alternative (sorry) but the current process doesn’t exactly work 100% with yarn. Thanks for the lib.
@coreylight yeah not working for me either - maybe I misread the docs. I would just follow @ljharb’s suggestion for now (install via NPM). Also if you’re on a PC I put together a PowerShell command (to help with the peer dependencies install) that’s in the comments of this PR here: https://github.com/airbnb/react-dates/pull/107