Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve module AccessibilityInfo #217

Closed
hosseinalipour opened this issue Aug 8, 2018 · 2 comments
Closed

Unable to resolve module AccessibilityInfo #217

hosseinalipour opened this issue Aug 8, 2018 · 2 comments

Comments

@hosseinalipour
Copy link

it's my first time I'm using react native, I tried the 3 steps and failed over and over!
but first step watchman: command not found is given

 error: bundling failed: Error: Unable to resolve module `AccessibilityInfo` from                                                                         
 `D:\workspace\react\rn2\node_modules\react-native\Libraries\react-native\react-                                                                         
 native-implementation.js`: Module `AccessibilityInfo` does not exist in the Hast                                                                         
 e 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 /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.  4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
    at ModuleResolver.resolveDependency (D:\workspace\react\rn2\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:167:1306)
    at ResolutionRequest.resolveDependency (D:\workspace\react\rn2\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:80:16)
    at DependencyGraph.resolveDependency (D:\workspace\react\rn2\node_modules\metro\src\node-haste\DependencyGraph.js:237:485)
    at Object.resolve (D:\workspace\react\rn2\node_modules\metro\src\lib\transformHelpers.js:116:25)
    at dependencies.map.result (D:\workspace\react\rn2\node_modules\metro\src\DeltaBundler\traverseDependencies.js:298:29)
    at Array.map (<anonymous>)
    at resolveDependencies (D:\workspace\react\rn2\node_modules\metro\src\DeltaBundler\traverseDependencies.js:294:16)
    at D:\workspace\react\rn2\node_modules\metro\src\DeltaBundler\traverseDependencies.js:159:33
    at Generator.next (<anonymous>)
    at step (D:\workspace\react\rn2\node_modules\metro\src\DeltaBundler\traverseDependencies.js:239:307)
 BUNDLE  [android, dev] ..\..\../index.js ░░░░░░░░░░░░░░░░ 0.0% (0/11), failed.
@rafeca
Copy link
Contributor

rafeca commented Aug 9, 2018

Hi! This seems related to #181, you may be using React Native 0.56.0, try upgrading to 0.56.1 and the issue should get fixed.

Kind regards! 👋

@Todilo
Copy link

Todilo commented Aug 22, 2018

Did you get this fixed? 0.56.1 does not exist and trying to upgrade to rc 0.57 does not seem to work. Some babel conflict. facebook/react-native#20353 appears to be closed but I can't seem to upgrade to 0.57 due to facebook/react-native#20710

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants