question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve module `AccessibilityInfo`

See original GitHub issue

The development server returned response error code: 500

URL: http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false

Body: {“originModulePath”:“E:\xampp\htdocs\practice\testing react-native\AwesomeProject\node_modules\react-native\Libraries\react-native\react-native-implementation.js”,“targetModuleName”:“AccessibilityInfo”,“message”:“Unable to resolve module AccessibilityInfo from E:\\xampp\\htdocs\\practice\\testing react-native\\AwesomeProject\\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. 4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.”,“errors”:[{“description”:“Unable to resolve module AccessibilityInfo from E:\\xampp\\htdocs\\practice\\testing react-native\\AwesomeProject\\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. 4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.”}],“name”:“Error”,“stack”:“Error: Unable to resolve module AccessibilityInfo from E:\\xampp\\htdocs\\practice\\testing react-native\\AwesomeProject\\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. 4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.\n at ModuleResolver.resolveDependency (E:\xampp\htdocs\practice\testing react-native\AwesomeProject\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:167:1306)\n at ResolutionRequest.resolveDependency (E:\xampp\htdocs\practice\testing react-native\AwesomeProject\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:80:16)\n at DependencyGraph.resolveDependency (E:\xampp\htdocs\practice\testing react-native\AwesomeProject\node_modules\metro\src\node-haste\DependencyGraph.js:237:485)\n at Object.resolve (E:\xampp\htdocs\practice\testing react-native\AwesomeProject\node_modules\metro\src\lib\transformHelpers.js:116:25)\n at dependencies.map.result (E:\xampp\htdocs\practice\testing react-native\AwesomeProject\node_modules\metro\src\DeltaBundler\traverseDependencies.js:298:29)\n at Array.map (<anonymous>)\n at resolveDependencies (E:\xampp\htdocs\practice\testing react-native\AwesomeProject\node_modules\metro\src\DeltaBundler\traverseDependencies.js:294:16)\n at E:\xampp\htdocs\practice\testing react-native\AwesomeProject\node_modules\metro\src\DeltaBundler\traverseDependencies.js:159:33\n at Generator.next (<anonymous>)\n at step (E:\xampp\htdocs\practice\testing react-native\AwesomeProject\node_modules\metro\src\DeltaBundler\traverseDependencies.js:239:307)”} processBundleResult BundleDownloader.java:285 access$200 BundleDownloader.java:37 onResponse BundleDownloader.java:163 execute RealCall.java:153 run NamedRunnable.java:32 runWorker ThreadPoolExecutor.java:1113 run ThreadPoolExecutor.java:588 run Thread.java:818

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
react-native-botcommented, Jul 17, 2018

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you’d like to start a discussion, check out https://discuss.reactjs.org or follow the discussion template.

1reaction
naiduprakashcommented, Jul 17, 2018

yes @slavikdenis but didn’t get any solution. when i init a new project with version 0.44.0 (react-native init myapp --version=“0.44.0”) then it works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module 'AccessibilityInfo', when trying to ...
It seems like a bug in 0.56 related to dependencies. The "solution" is to find the correct combination of dependencies' versions.
Read more >
Solved: Unable to resolve module AccessibilityInfo
Go to /android/app/src/main/java/com and make sure the location consists of only one directory containing the MainActivity.java and MainApplication.java files.
Read more >
Unable to resolve module AccessibilityInfo #23797 - GitHub
I tried commenting out the problem import in ~/bugProject/node_modules/react-native/Libraries/react-native/react-native-implementation.js , but ...
Read more >
Unable to resolve module `AccessibilityInfo`
I am trying to create a new React-Native project from WebStorm IDE. After I run 'npm install' and click on 'Run' button in...
Read more >
unable to resolve module deprecated-react-native-prop-types
I found get AccessibilityInfo() { return require('AccessibilityInfo'); }, in the /Users/phillipp/Work/***/***/node_modules/react-native/Libraries/react-native/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found