EAS Build give => Execution failed for task ':app:bundleReleaseJsAndAssets'

Please provide the following:

  1. SDK Version: 43
  2. Platforms(Android/iOS/web/all): Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.
    metro-transform-worker

package.json

"dependencies": {
    "@react-native-async-storage/async-storage": "~1.15.0",
    "@react-native-community/checkbox": "^0.5.9",
    "@react-native-community/masked-view": "^0.1.11",
    "@react-native-community/netinfo": "6.0.2",
    "@react-native-firebase/analytics": "^17.3.2",
    "@react-native-firebase/app": "^17.3.2",
    "@react-native-firebase/dynamic-links": "^17.3.2",
    "@react-native-firebase/firestore": "^17.3.2",
    "@react-native-firebase/in-app-messaging": "^17.3.2",
    "@react-native-firebase/messaging": "^17.3.2",
    "@react-native-picker/picker": "2.1.0",
    "@react-navigation/drawer": "^6.5.0",
    "@react-navigation/material-bottom-tabs": "^6.0.9",
    "@react-navigation/native": "^6.0.6",
    "@react-navigation/native-stack": "^6.2.5",
    "@react-navigation/stack": "^6.0.11",
    "axios": "^0.24.0",
    "expo": "~43.0.2",
    "expo-firebase-analytics": "^5.0.3",
    "expo-font": "~10.0.3",
    "expo-splash-screen": "~0.13.5",
    "expo-status-bar": "~1.1.0",
    "expo-updates": "~0.10.15",
    "form-data": "^4.0.0",
    "moment": "^2.29.1",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-custom-checkbox": "^1.5.2",
    "react-native-device-info": "^8.4.8",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-paper": "^4.10.0",
    "react-native-reanimated": "~2.2.0",
    "react-native-render-html": "^6.3.0",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.8.0",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-vector-icons": "^9.0.0",
    "react-native-web": "0.17.1",
    "react-navigation": "^4.4.4",
    "react-redux": "^7.2.6",
    "redux": "^4.1.2",
    "redux-logger": "^3.0.6",
    "redux-persist": "^6.0.0",
    "redux-thunk": "^2.4.0"
  },
  "devDependencies": {
    "@babel/core": "^7.18.6",
    "jest-expo": "^46.0.0",
    "jetifier": "^2.0.0",
    "metro-config": "^0.76.0",
    "react-test-renderer": "17.0.1"
  },

metro.config.js

// Learn more https://docs.expo.io/guides/customizing-metro
import { getDefaultConfig } from '@expo/metro-config';

export default getDefaultConfig(__dirname);

babel.config.js

module.exports = function(api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
    plugins: ['react-native-reanimated/plugin']
  };
};

This error appears when I run the following commands npx eas build --platform android or npx expo run:android --variant release,I made changes to the existing applications in the emulator, they work without problems but I can’t adapt them, I didn’t really find information on the internet about the respective problems or about the metro configuration.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.