React native:模块"DrawerLayoutAndroid"在 Haste 模块映射中不



当我的应用程序安装在我的设备/模拟器上时,我收到此错误:

错误:

捆绑失败:错误:无法解析模块DrawerLayoutAndroid来自/Users/anandchandran/Desktop/cognito-RN/node_modules/react-native/Libraries/react-native/react-native-implementation.js

:模块DrawerLayoutAndroid在匆忙模块映射中不存在

运行npm link为我解决了问题

在此处找到的文档

只需从"/Users/anandchandran/Desktop/cognito-RN/node_modules/react-native/Libraries/react-native/react-native-implementation.js"中删除"DrawerLayoutAndroid">

它现在工作正常.. 如果仍然遇到一些错误,请删除节点模块并重新安装并链接它。

最新更新