react-toggle icon indicating copy to clipboard operation
react-toggle copied to clipboard

Cannot resolve module 'react-addons-shallow-compare'

Open salujaharkirat opened this issue 8 years ago • 3 comments

Can anyone please tell if there is any dependency issue with the current version?

I am getting following errors on using latest versions


Module not found: Error: Cannot resolve module 'react-addons-shallow-compare' in /Users/aragorn/wealthy/taxo_new/node_modules/react-toggle/dist/component
 @ ./~/react-toggle/dist/component/index.js 29:33-72

This works fine with version 2.1.1.

Can someone please help me on this?

salujaharkirat avatar Jan 19 '17 13:01 salujaharkirat

Looks like something else was working.. working fine.. Closing the issue

salujaharkirat avatar Jan 19 '17 13:01 salujaharkirat

I'm seeing this also:

npm WARN [email protected] requires a peer of react-addons-shallow-compare@~0.14.0 || ^15.0.0 but none was installed.

jgentes avatar Jan 23 '17 19:01 jgentes

Looks like npm defaults to v2.2.0 for some reason.. by forcing v2.1.1 in package.json and uninstalling/reinstalling react-toggle, it seems to fix the problem.

jgentes avatar Jan 23 '17 19:01 jgentes