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.

Missing dependency `react-addons-shallow-compare`

See original GitHub issue

Tried 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:closed
  • Created 7 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
coreylightcommented, Nov 4, 2016

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.

1reaction
jpollard-cscommented, Nov 4, 2016

@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

Read more comments on GitHub >

github_iconTop 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 >

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