5

error: bundling failed:

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

Community
  • 1
  • 1
Mahdi Bashirpour
  • 17,147
  • 12
  • 117
  • 144

2 Answers2

2

Its some incompatible versioning problems in React native.Try this it will work

  1. Change versions of following in package.json In dependencies :-

    "react": "16.3.1"
    "react-native": "0.55.4"
    

    In devDependencies :-

    "babel-preset-react-native": "2.1.0"
    
  2. Delete node_modules and run npm install --save

  3. Then run application by react-native run-android

It will run fine ...

Mahdi Bashirpour
  • 17,147
  • 12
  • 117
  • 144
Chirag Sharma
  • 888
  • 6
  • 18
  • I am using react-native 0.63.4, and error is -- `error Unable to resolve module `AccessibilityInfo` from `react-native-calendars/node_modules/react-native/Libraries/react-native/react-native-implementation.js`: AccessibilityInfo could not be found within the project.` Still no luck :( – Narendra Singh Jan 11 '21 at 14:34
0

  • Heading

    first of all try with

    npm start -- --reset-cache

    If this is not working than delete node modules & npm install npm start -- --reset-cache

deepanshu katyal
  • 631
  • 1
  • 8
  • 18