React Native:Haste 模块映射中不存在模块`DrawerLayoutAndroid` [英] React native: Module `DrawerLayoutAndroid` does not exist in the Haste module map

查看:39
本文介绍了React Native:Haste 模块映射中不存在模块`DrawerLayoutAndroid`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的设备/模拟器上安装我的应用程序时出现此错误:

I am getting this error while my app is being installed on my device/emulator:

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

error: bundling failed: Error: Unable to resolve module DrawerLayoutAndroid from /Users/anandchandran/Desktop/cognito-RN/node_modules/react-native/Libraries/react-native/react-native-implementation.js

:模块DrawerLayoutAndroid在Haste模块图中不存在

: Module DrawerLayoutAndroid does not exist in the Haste module map

推荐答案

running npm link 为我解决了这个问题

running npm link fixed the issue for me

此处找到文档

这篇关于React Native:Haste 模块映射中不存在模块`DrawerLayoutAndroid`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆