Closed
Description
Description
I basically just cloned an existing project with a minimal setup, did yarn install
and node node_modules/react-native/local-cli/cli.js run-ios
. It started but the packer failed with:
error: bundling: UnableToResolveError: Unable to resolve module `AccessibilityInfo` from `/Users/phillipp/Work/***/***/node_modules/react-native/Libraries/react-native/react-native-implementation.js`: Module does not exist in the module map or in these directories:
/Users/phillipp/Work/***/***/node_modules/react-native/node_modules
, /Users/phillipp/Work/***/***/node_modules
I found get AccessibilityInfo() { return require('AccessibilityInfo'); },
in the /Users/phillipp/Work/***/***/node_modules/react-native/Libraries/react-native/react-native-implementation.js
file but I have no clue where it wants to require that from. It seems to be a RN core thing.
Here is the package.json
for those who are curious:
{
"name": "***",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"base64-js": "^1.2.0",
"react": "^16.0.0-alpha.6",
"react-native": "^0.44.0",
"react-native-ble-manager": "^3.2.0",
"react-native-checkbox": "^1.1.0",
"react-native-color-picker": "^0.2.1",
"react-native-drawer": "^2.3.0",
"react-native-dropdown": "0.0.6",
"react-native-image-picker": "^0.25.5",
"react-native-list-popover": "^1.0.5",
"react-native-modal-picker": "0.0.16",
"react-native-orientation": "^1.17.0",
"react-native-router-flux": "^3.37.0",
"react-native-selectbox": "^0.1.0",
"react-native-selection": "^1.3.5",
"react-native-selectme": "^1.2.3",
"react-native-sound": "^0.9.1",
"react-native-vector-icons": "^4.0.1"
},
"devDependencies": {
"babel-jest": "18.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "18.1.0",
"react-test-renderer": "~15.4.0"
},
"jest": {
"preset": "react-native"
}
}
I already tried everything I found on the internet (reinstalling node modules, cleaning npm, yarn and watchman caches, deleting react files from temp dir, etc.)
Additional Information
- React Native version:
^0.44.0
- Platform:
ios
- Development Operating System: OSX
- Dev tools: XCode Version 8.0 (8A218a)