No main.jsbundle after switching to ESM

When building for iOS on expo.dev after switching from CJS to ESM I’m seeing this error:

❌  error: File /Users/expo/Library/Developer/Xcode/DerivedData/Blogcast-fuzvhzrbxgcrkzgukxcowsimcwlw/Build/Intermediates.noindex/ArchiveIntermediates/Blogcast/BuildProductsPath/Release-iphoneos/Blogcast.app/main.jsbundle does not exist. This must be a bug with React Native, please report it here: https://github.com/facebook/react-native/issues

The build id is ef781e64-3fcb-4d3d-b6bb-0b6ad04e9c25. It works locally. I used eas-cli@4.1.1 (latest).

Any idea what could be causing this? Thanks.

can you elaborate on what you did exactly? “after switching from CJS to ESM I’m seeing this error:”