ReactNative——问题:Unable to resolve module 'AccessibilityInfo'...doesn't exist in the Haste module map

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_28484355/article/details/81288810

RN工程运行报错:

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

解决:

这个问题似乎是由于0.56.0版本所引起的依赖关系的错误,打开根目录下的package.json,查看react-native的版本是不是0.56.0:

若是0.56.0,则将其降级为0.55.4,在你项目的根目录下打开命令行(或者cd到项目根目录下)

运行:npm install [email protected]

猜你喜欢

转载自blog.csdn.net/qq_28484355/article/details/81288810