react-native-hideable-view
react-native-hideable-view copied to clipboard
ambiguous resolution: module
Hello , when I build my react-native project , I encountered the "ambiguous" problem.
I input command:" yarn react-native run-android " It show the error log bellow
error: bundling failed: ambiguous resolution: module D:\data\projects\workplace\project\index.js
tries to require react-native
, but there are several files providing this module. You can delete or fix them:
-
D:\data\projects\workplace\project\node_modules\react-native-hideable-view\node_modules\react-native\package.json
-
D:\data\projects\workplace\project\node_modules\react-native\package.json
and the versions are
"react": "16.3.1", "react-native": "0.55.4", "react-native-hideable-view": "^1.0.3",
But when I delete the folder "`D:\data\projects\workplace\project\node_modules\react-native-hideable-view\node_modules\react-native"
then it runs Ok .
But I don't konw how to solve it .
Hope for your help