What is the current behavior?
I am running into this issue when attempting to build my iOS app in a Release scheme either via Xcode or via the expo CLI. I am able to successfully run the app in the simulator in debug mode.
With the expo-cli the command is npx expo run:ios --configuration Release
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
error: Cannot read property 'transformFile' of undefined
TypeError: Cannot read property 'transformFile' of undefined
TypeError: Cannot read property 'transformFile' of undefined
at Bundler.transformFile (/Users/[USER]/Documents/Projects/sentiance-expo/node_modules/metro/src/Bundler.js:43:30)
at async Object.transform (/Users/[USER]/Documents/Projects/sentiance-expo/node_modules/metro/src/lib/transformHelpers.js:130:12)
at async transform (/Users/[USER]/Documents/Projects/sentiance-expo/node_modules/metro/src/DeltaBundler/Graph.js:164:26)
at async visit (/Users/[USER]/Documents/Projects/sentiance-expo/node_modules/metro/src/DeltaBundler/buildSubgraph.js:82:29)
at async Promise.all (index 0)
at async buildSubgraph (/Users/[USER]/Documents/Projects/sentiance-expo/node_modules/metro/src/DeltaBundler/buildSubgraph.js:103:3)
at async Graph._buildDelta (/Users/[USER]/Documents/Projects/sentiance-expo/node_modules/metro/src/DeltaBundler/Graph.js:157:22)
at async Graph.initialTraverseDependencies (/Users/[USER]/Documents/Projects/sentiance-expo/node_modules/metro/src/DeltaBundler/Graph.js:140:19)
at async DeltaCalculator._getChangedDependencies (/Users/[USER]/Documents/Projects/sentiance-expo/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:151:25)
at async DeltaCalculator.getDelta (/Users/[USER]/Documents/Projects/sentiance-expo/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:68:16)
What is the current behavior? I am running into this issue when attempting to build my iOS app in a Release scheme either via Xcode or via the expo CLI. I am able to successfully run the app in the simulator in debug mode.
With the expo-cli the command is
npx expo run:ios --configuration Release
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
React Native v0.73.4 Node v18.17 Expo v50 (Bare Workflow)
This is the default generated config
System Information
Stacktrace
package.json
babel.config.json
Things I've tried: