-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module 'react-dom' from 'ReactSixteenAdapter.js' #1390
Comments
|
hi @ljharb, do you know if by any chance someone is working about this issue? |
@thegame8714 this issue is in fact not an issue; #1436 tracks creating an adapter for react-native. |
for my case, I linked the internal node-module which includes the enzyme. once I unlink it, the error goes away |
in your
Before, I just import |
enzyme-adapter-react-16
has a peerDependency forreact-dom
, however React Native apps do not have react-dom installed.This throws an error
Cannot find module 'react-dom' from 'ReactSixteenAdapter.js'
. A quick fix is to install react-dom explicitly as a devDependency, but this is not an ideal solution.The text was updated successfully, but these errors were encountered: