Closed toddw closed 8 years ago
peerDependencies
will throw a warning when not installed, but they don't prevent npm from work.
Do you think that, to support an ancient version of React, you should expose all your users to this kind of behavior? Why don't you put it in the dependencies and let 0.13 users install it even if they will not use it?
yes, this is the proper way to do it for the time being. We have a plan to alter the core of enzyme in the future such that this problem won't occur again, but in the meantime, the current behavior will not be changing.
Error: Cannot resolve module 'enzyme/build/react-compat'
I fixed that when i did npm install
into the /node_modules/chai-enzyme/
After upgrading to React 15, I started getting the following error with enzyme.