设置反应原生环境时出现问题 [英] Problem in setting up the react native environment

查看:135
本文介绍了设置反应原生环境时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Unable to resolve module `AccessibilityInfo` from `C:\Users\v89\awesomeProject\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module AccessibilityInfo does not exist in the Haste module map.



This might be related to https://github.com/facebook/react-native/issues/4968

To resolve try the following:

  1. Clear watchman watches: `watchman watch-del-all`.

  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.

  3. Reset Metro Bundler cache: `rm -rf $TMPDIR/react-*` or `npm start -- --reset-cache`.  4. Remove haste cache: `rm -rf $TMPDIR/haste-map-react-native-packager-*`.





< b>我尝试了什么:





What I have tried:

I tried everything recommended on internet, nothing is working. I am totally stuck on it. Please help

推荐答案

TMPDIR / react- *`或`npm start - --reset-cache`。 4.删除急速缓存:`rm -rf
TMPDIR/react-*` or `npm start -- --reset-cache`. 4. Remove haste cache: `rm -rf


TMPDIR / haste-map-react-native-packager- *`。
TMPDIR/haste-map-react-native-packager-*`.





我尝试过的事情:





What I have tried:

I tried everything recommended on internet, nothing is working. I am totally stuck on it. Please help


react-native init ProjectName --version 0.55.4





这对我有用!



This worked for me!


这篇关于设置反应原生环境时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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