After updating to expo 43, I can’t make EAS build work.
On iOS, I get
** ARCHIVE FAILED **
▸ The following build commands failed:
▸ PhaseScriptExecution [CP-User]\ Generate\ app.manifest\ for\ expo-updates /Users/expo/Library/Developer/Xcode/DerivedData/Linkvite-cbvwcfthqdlrmybvhtekghxllsyl/Build/Intermediates.noindex/ArchiveIntermediates/Linkvite/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/EXUpdates.build/Script-49F93F43B9AB98D31CB55A39585BC5D3.sh (in target 'EXUpdates' from project 'Pods')
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ app.manifest\ for\ expo-updates /Users/expo/Library/Developer/Xcode/DerivedData/Linkvite-cbvwcfthqdlrmybvhtekghxllsyl/Build/Intermediates.noindex/ArchiveIntermediates/Linkvite/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/EXUpdates.build/Script-49F93F43B9AB98D31CB55A39585BC5D3.sh (in target 'EXUpdates' from project 'Pods')
▸ (1 failure)
Exit status: 65
before the error above, the logs showed this warning
❌ Metro encountered an error:
Unable to resolve module ./src/styles/colors from /Users/expo/workingdir/build/App.tsx:
None of these files exist:
* src/styles/colors(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
* src/styles/colors/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
10 | axios.defaults.withCredentials = true;
11 | import Toast, { BaseToast } from 'react-native-toast-message';
> 12 | import { Colors } from './src/styles/colors';
| ^
13 | import { showToast } from './src/utilities/functions';
14 | import { HoldMenuProvider } from 'react-native-hold-menu';
15 | import { Host } from 'react-native-portalize';
On Android, I get pretty much the same:
[stderr]
error Unable to resolve module ./src/styles/colors from /build/workingdir/build/App.tsx:
573[stderr]
None of these files exist:
* src/styles/colors(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
575[stderr]
* src/styles/colors/index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
576[stderr]
10 | axios.defaults.withCredentials = true;
577[stderr]
11 | import Toast, { BaseToast } from 'react-native-toast-message';
578[stderr]
> 12 | import { Colors } from './src/styles/colors';
579[stderr]
| ^
580[stderr]
13 | import { showToast } from './src/utilities/functions';
581[stderr]
14 | import { HoldMenuProvider } from 'react-native-hold-menu';
582[stderr]
15 | import { Host } from 'react-native-portalize';.
583
> Task :app:bundleReleaseJsAndAssets FAILED
584
> Task :react-native-async-storage_async-storage:generateReleaseRFile
585[stderr]
FAILURE: Build failed with an exception.
586[stderr]
* What went wrong:
587[stderr]
Execution failed for task ':app:bundleReleaseJsAndAssets'.
588[stderr]
> Process 'command 'node'' finished with non-zero exit value 1
this file { Colors }
exists, it doesn’t even come up on expo:build
Here are the links to iOS and Android build.
This is my app.json file
{
"expo": {
...,
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
...,
"supportsTablet": true,
"usesIcloudStorage": true,
"usesAppleSignIn": true
},
"android": {
...,
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./assets/favicon.png"
},
"description": ""
}
}
Lastly, here’s a link to what my root directory looks like