I'm currently developing a managed expo app and utilizing eas services. When attempting to create an internal distribution build, the process is successful on Android, but on iOS, the build fails with the following error:
Metro encountered an error:
Cannot read property 'transformFile' of undefined
▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/greengot-djveyphpwyosjubjkipdmcftptmp/Build/Intermediates.noindex/ArchiveIntermediates/greengot/IntermediateBuildFilesPath/greengot.build/Debug-iphoneos/greengot.build/Script-00DD1BFF1BD5951E006B06BC.sh
The versions I am using are as follows:
"expo": "^41.0.0"
"react": "^17.0.2"
"react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz"
Below is the fastlane step:
Creating Gymfile
Gymfile created
Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' 📄
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| Detected Values from './Gymfile' |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
| suppress_xcode_output | true |
| clean | false |
| scheme | greengot |
| configuration | Debug |
| export_options | |
| export_xcargs | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/97/73j93h690g9gdn54bh_zskm40000gn/T/turtle-v2-7e963dc1-4490-447d-a422-5fbf97c2632f.keychain" |
| disable_xcpretty | true |
| buildlog_path | /Users/expo/workingdir/logs |
| output_directory | ./build |
+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+
... (additional fastlane step details)
Furthermore, the iOS log contains the following error:
Welcome to Metro!
Fast - Scalable - Integrated
Failed to construct transformer: TypeError: Transformer is not a constructor
at getTransformCacheKey (/Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/Transformer/getTransformCacheKey.js:33:31)
... (more errors)
I want to highlight that expo-updates is not included in my dependencies. Do you have any insights on how to resolve this error?