You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
I started using @apollo/react-hooks for testing hooks with apollo in react-native and when starting application, I have a warning about react-dom dependency. The question is, I need react-dom dependence on react-native?
Loading dependency graph, done.
error: bundling failed: Error: Unable to resolve module `react-dom/server` from `/Users/isac/Projects/React/apollo-hooks/node_modules/@apollo/react-hooks/lib/react-hooks.cjs.js`: Module `react-dom/server` does not exist in the Haste module map
Thanks for the bug report @isacjunior. This bug should be fixed by 6069932, which should make its way to the next release. In the meantime, you could manually add
"react-native": {
"react-dom/server": false
}
to @apollo/react-hooks's package.json in your node_modules folder.
I started using
@apollo/react-hooks
for testing hooks with apollo inreact-native
and when starting application, I have a warning aboutreact-dom
dependency. The question is, I needreact-dom
dependence onreact-native
?Version
The text was updated successfully, but these errors were encountered: