I’m deploying my expo app to the staging environment, but the iOS deployment eas pipeline is failing due to the following issue:
Upon further investigation, I found that this function is unable to generate the source map:
sourcemaps.sh#L52
This happens because the package @react-native-community/cli cannot be resolved.
Additionally, at this location:
sourcemaps.sh#L46,
the variable $source_map_file is an empty string.
Suggested Fixes:
- Modify sourcemaps.sh to check if the source map file exists before proceeding, and throw an explicit error if it does not.
- Ensure @react-native-community/cli is included as a peer dependency in the package configuration.
- Handle cases where $source_map_file is empty by adding validation and error handling in the script.