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

Module AccessibilityInfo does not exist in the Haste module map #23095

Closed
3 tasks done
ifyapishore opened this issue Jan 22, 2019 · 1 comment
Closed
3 tasks done

Module AccessibilityInfo does not exist in the Haste module map #23095

ifyapishore opened this issue Jan 22, 2019 · 1 comment
Labels
API: AccessibilityInfo Resolution: Locked This issue was locked by the bot.

Comments

@ifyapishore
Copy link

ifyapishore commented Jan 22, 2019

Environment

Run react-native info in your terminal and paste its contents here.
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (4) x64 Intel(R) Core(TM) i7 CPU M 620 @ 2.67GHz
Memory: 67.61 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.6.0 - /usr/local/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.5.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Android Studio: 3.1 AI-173.4720617
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.57.8 => 0.57.8
npmGlobalPackages:
react-native-cli: 2.0.1

Description

image

Reproducible Demo

  1. react-native init
  2. react-native dependencies --entry-file=index.ios.js
@ifyapishore
Copy link
Author

ifyapishore commented Jan 22, 2019

Resolved.

For anyone who following into big troubles with it here are instructions:

  1. Do not build ios and android in the same dir
  2. Do not use absolute import in typescript files (it was root of issue and produces irrelevant error messages)
  3. Always clear caches before build
    3.1 yarn and npm has issues with cache
    3.2 gradle has issue with cache

here are my scripts

build-android.sh
`
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)

echo 'clean watchman'
watchman watch-del-all
echo 'clean node_modules'
rm -rf node_modules
echo 'clean caches'
rm -rf $TMPDIR/haste-map-react-native-packager-*
rm -rf $TMPDIR/react-native-packager-cache-*
rm -rf $TMPDIR/metro-bundler-cache-*
rm -rf /tmp/*

rm -rf ./android/app/build
rm -rf ./android/app/.gradle
rm -rf /Users/ify/.gradle

export BRANCH_NAME=build-android-app
export ANDROID_HOME=/opt/android/sdk/
export PATH=${PATH}:/usr/local/bin/
cp -f src/env.qa.ts src/env.local.ts
yarn install
./node_modules/react-native/packager/packager.sh --reset-cache
yarn version
yarn run build
export HOCKEY_APP_ID=<>
BUILD_NUMBER=cat ./src/buildNumber.txt
APP_VERSION=cat ./src/appVersion.txt
BRANCH_NAME='QA'
cd android
./gradlew build
-PbuildNumber=${BUILD_NUMBER}
-PversionName=${APP_VERSION}
-PapplicationId=com.fuelclub.qa
-x lint

cd ..

export HOCKEY_APP_ID=<>
export HOCKEY_API_TOKEN=<>
./node_modules/.bin/gulp hockeyapp_android
cp -f src/env.ify.ts src/env.local.ts
build-ios.sh
#!/bin/bash
#./reset-all.sh

#yarn install

cd ios

pod deintegrate
pod install
fastlane qa
reset-all.sh
#!/bin/bash

clean react-native

echo 'clean watchman'
watchman watch-del-all
echo 'clean node_modules'
rm -rf node_modules
echo 'clean caches'
rm -rf $TMPDIR/haste-map-react-native-packager-*
rm -rf $TMPDIR/react-native-packager-cache-*
rm -rf $TMPDIR/metro-bundler-cache-*

rm -rf ./android/app/build
rm -rf ./android/app/.gradle
rm -rf /Users/ify/.gradle
rm yarn.lock
rm package-lock.json

clean xcode

xcodebuild -project ios/FuelClub.xcodeproj -configuration Release clean
xcodebuild -project ios/FuelClub.xcodeproj -configuration Debug clean
echo 'clean Xcode/DerivedData'
rm -rf ~/Library/Developer/Xcode/DerivedData
echo 'clean ios build'
rm -rf ./ios/build
rm -rf ./ios/Pods

install

echo 'start'
yarn install
#react-native link - disabled because produces compile instead of implementation
pod deintegrate --project-directory=./ios/
pod install --project-directory=./ios/

`

@facebook facebook locked as resolved and limited conversation to collaborators Jan 22, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jan 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API: AccessibilityInfo Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants