繁体   English   中英

找不到与AccessibilityInfo的生成错误

Build error with AccessibilityInfo not found

提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供   中文繁体   英文版本   中英对照 版本,有任何建议请联系yoyou2525@163.com。

我在React Native上遇到构建问题-通过运行本地CLI Metro和react-native run-ios我收到一条错误消息,提示Unable to resolve module 'AccessibilityInfo'

我已经尝试过更新软件包并从那里进行修复-我还清除了缓存和守望者缓存-还按照错误消息中的步骤进行操作。

{
  "originModulePath": "/Users/lukecurtis/code/test-customer-app/node_modules/react-native/Libraries/react-native/react-native-implementation.js",
  "targetModuleName": "AccessibilityInfo",
  "message": "Unable to resolve module `AccessibilityInfo` from `/Users/lukecurtis/code/test-customer-app/node_modules/react-native/Libraries/react-native/react-native-implementation.js`: Module `AccessibilityInfo` does not exist in the Haste module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n  1. Clear watchman watches: `watchman watch-del-all`.\n  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n  3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.\n  4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.",
  "errors": [
    {
      "description": "Unable to resolve module `AccessibilityInfo` from `/Users/lukecurtis/code/test-customer-app/node_modules/react-native/Libraries/react-native/react-native-implementation.js`: Module `AccessibilityInfo` does not exist in the Haste module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n  1. Clear watchman watches: `watchman watch-del-all`.\n  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n  3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.\n  4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`."
    }
  ],
  "name": "Error",
  "stack": "Error: Unable to resolve module `AccessibilityInfo` from `/Users/lukecurtis/code/test-customer-app/node_modules/react-native/Libraries/react-native/react-native-implementation.js`: Module `AccessibilityInfo` does not exist in the Haste module map\n\nThis might be related to https://github.com/facebook/react-native/issues/4968\nTo resolve try the following:\n  1. Clear watchman watches: `watchman watch-del-all`.\n  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.\n  3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.\n  4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.\n    at ModuleResolver.resolveDependency (/Users/lukecurtis/code/test-customer-app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:183:15)\n    at ResolutionRequest.resolveDependency (/Users/lukecurtis/code/test-customer-app/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)\n    at DependencyGraph.resolveDependency (/Users/lukecurtis/code/test-customer-app/node_modules/metro/src/node-haste/DependencyGraph.js:273:16)\n    at Object.resolve (/Users/lukecurtis/code/test-customer-app/node_modules/metro/src/lib/transformHelpers.js:261:42)\n    at dependencies.map.result (/Users/lukecurtis/code/test-customer-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:391:31)\n    at Array.map (<anonymous>)\n    at resolveDependencies (/Users/lukecurtis/code/test-customer-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:388:18)\n    at /Users/lukecurtis/code/test-customer-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:261:33\n    at Generator.next (<anonymous>)\n    at asyncGeneratorStep (/Users/lukecurtis/code/test-customer-app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)"
}

该版本应该运行,但是出现上述错误。 我正在使用RN版本0.57.7如果需要可以发布完整的json包

问题暂未有回复.您可以查看右边的相关问题.
5 项目生成错误:不可解析的父POM:找不到工件

嗨,我在木兰开花有一个示例项目。 当我运行项目时,它显示错误。 这是我的pom.xml 在它显示以下错误: 项目生成错误:无法解析的父POM:找不到工件信息。Magnolia:magnolia-parent-pom-community-module:pom:1.0.1 ...

2015-03-26 10:14:24 2 3264   magnolia
7 生成错误:qemu-arm:找不到命令

在linux上构建时出现以下错误。 / bin / sh:qemu-arm:找不到命令 / bin / sh:找不到qemu-aarch64命令 有人可以帮我解决这个错误吗? ...

2015-07-13 09:21:08 1 1286   qemu
暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2022 STACKOOM.COM