Build Failure [4.9.37 and 4.7.72] - Unable to resolve module keymirror

Last week, I successfully built the APK version of the app, and it was functioning properly. However, I’m currently encountering new issues while building the Android app, both in APK and AAB formats.

The build version 4.7.37 for iOS works.

Runtime version: 4.7.37;
AB version: 1.7.11
COMMAND:

ASSETS_ARCHIVE_URL=https://appgyver-meap-assets.s3.amazonaws.com/ctoa0w5uepyrvea9chp89sce3y20?response-content-disposition=attachment%3B%20filename%3D"assets.zip"%3B%20filename*%3DUTF-8''assets.zip&response-content-type=application%2Fzip&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJJSXXQRL4UNGBAXQ%2F20230715%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230715T171527Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=270950a584364953ebfcb052dda061a8ac7a900fbd3c1742e2a90c298d22a9d1 NODE_OPTIONS=–max-old-space-size=8096 npxrnv export -p android -s standalone_bundle -c standalone --ci --yes --skipRnvCheck --packageManager yarn --template @appgyver/orchestra-template-standalone@4.7.37 -r

FAILED with ERROR:

│ [ error ] [package] COMMAND:
react-native bundle --platform android --dev false --assets-dest /tmp/567733-android-290823/platformBuilds/standalone_android/app/src/main/res --entry-file index.js --bundle-output /tmp/567733-android-290823/platformBuilds/standalone_android/app/src/main/assets/index.bundle --config=metro.config.js
FAILED with ERROR:
error Unable to resolve module keymirror from /tmp/567733-android-290823/node_modules/react-native-webview-bridge/webview-bridge/index.android.js: keymirror could not be found within the project or in these directories:
node_modules
If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro’s cache: yarn start --reset-cache
    Error: Unable to resolve module keymirror from /tmp/567733-android-290823/node_modules/react-native-webview-bridge/webview-bridge/index.android.js: keymirror could not be found within the project or in these directories:
    node_modules
    If you are sure the module exists, try these steps:
  4. Clear watchman watches: watchman watch-del-all
  5. Delete node_modules and run yarn install
  6. Reset Metro’s cache: yarn start --reset-cache
    error Unable to resolve module keymirror from /tmp/567733-android-290823/node_modules/react-native-webview-bridge/webview-bridge/index.android.js: keymirror could not be found within the project or in these directories:
    node_modules
    If you are sure the module exists, try these steps:
  7. Clear watchman watches: watchman watch-del-all
  8. Delete node_modules and run yarn install
  9. Reset Metro’s cache: yarn start --reset-cache
    Error: Unable to resolve module keymirror from /tmp/567733-android-290823/node_modules/react-native-webview-bridge/webview-bridge/index.android.js: keymirror could not be found within the project or in these directories:
    node_modules
    If you are sure the module exists, try these steps:
  10. Clear watchman watches: watchman watch-del-all
  11. Delete node_modules and run yarn install
  12. Reset Metro’s cache: yarn start --reset-cache
    error Unable to resolve module keymirror from /tmp/567733-android-290823/node_modules/react-native-webview-bridge/webview-bridge/index.android.js: keymirror could not be found within the project or in these directories:
    node_modules
    If you are sure the module exists, try these steps:
  13. Clear watchman watches: watchman watch-del-all
  14. Delete node_modules and run yarn install
  15. Reset Metro’s cache: yarn start --reset-cache
    Error: Command failed with exit code 1: react-native bundle --platform android --dev false --assets-dest /tmp/567733-android-290823/platformBuilds/standalone_android/app/src/main/res --entry-file index.js --bundle-output /tmp/567733-android-290823/platformBuilds/standalone_android/app/src/main/assets/index.bundle --config=metro.config.js
    error Unable to resolve module keymirror from /tmp/567733-android-290823/node_modules/react-native-webview-bridge/webview-bridge/index.android.js: keymirror could not be found within the project or in these directories:
    node_modules
    If you are sure the module exists, try these steps:
  16. Clear watchman watches: watchman watch-del-all
  17. Delete node_modules and run yarn install
  18. Reset Metro’s cache: yarn start --reset-cache
    Error: Unable to resolve module keymirror from /tmp/567733-android-290823/node_modules/react-native-webview-bridge/webview-bridge/index.android.js: keymirror could not be found within the project or in these directories:
    node_modules
    If you are sure the module exists, try these steps:
  19. Clear watchman watches: watchman watch-del-all
  20. Delete node_modules and run yarn install
  21. Reset Metro’s cache: yarn start --reset-cache
    at makeError (/tmp/567733-android-290823/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/tmp/567733-android-290823/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    │ │
    │ Project location: │
    │ ./platformBuilds/standalone_android │

tried all runtimes on android. All failed.

I have the same issue here :frowning:

Hi,

Have you tried running the build with 4.9.72? If that fails, what is the error?

yes, I tried all available builders, but each one is returning different error

I am also having the “key mirror” error on Android 4.9.72

FAILED with ERROR:

│ [ error ] [package] COMMAND:
react-native bundle --platform android --dev false --assets-dest /tmp/676328-android-291792/platformBuilds/standalone_android/app/src/main/res --entry-file index.js --bundle-output /tmp/676328-android-291792/platformBuilds/standalone_android/app/src/main/assets/index.bundle --config=metro.config.js
FAILED with ERROR:
error Unable to resolve module keymirror from /tmp/676328-android-291792/node_modules/react-native-webview-bridge/webview-bridge/index.android.js: keymirror could not be found within the project or in these directories:
node_modules
If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro’s cache: yarn start --reset-cache
    Error: Unable to resolve module keymirror from /tmp/676328-android-291792/node_modules/react-native-webview-bridge/webview-bridge/index.android.js: keymirror could not be found within the project or in these directories:
    node_modules

I was able to resolve this issue by correcting my keystore alias and password as well as using version 4.7.36

There is a serious stability issue. I tried during days to build my Android project without success. Yesterday I was able to build my app once suddenly with all the builders. But then I tried again immediatly with V4.9.72 and it didn’t work even if it worked a few minutes before:

Should be solved now, tested a bit on our end. Could you retry and confirm? Thank you.