Hello, I am trying to build an app using EAS. The regular expo build
was successful, but not eas build
.
Here is my error. It obviously has something to do with the react-native-cheerio package I am using. However, I do not have any issues when creating standalone apps using Xcode on my iPhone. Can anyone offer any insights? Error below:
› Executing Showfolio » Bundle React Native code and images
the transform cache was reset.
❌ error: File /Users/expo/Library/Developer/Xcode/DerivedData/Showfolio-gcojmkjetdjpshbeuqwspoawmjpu/Build/Intermediates.noindex/ArchiveIntermediates/Showfolio/BuildProductsPath/Release-iphoneos/showfolio.app/main.jsbundle does not exist. This must be a bug with
❌ Metro encountered an error:
Unable to resolve module react-native-cheerio from /Users/expo/workingdir/build/src/screens/Home.js: react-native-cheerio could not be found within the project.
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
4. Remove the cache: rm -rf /tmp/metro-*
6 | import { showMessage, hideMessage } from "react-native-flash-message";
7 | import { ThemeContext } from '../../theme-context';
> 8 | import cheerio from 'react-native-cheerio';
| ^
9 | import htmlparser2 from 'htmlparser2'
10 | import axios from 'axios';
11 | import api from '../API';
› Generating debug Showfolio » showfolio.app.dSYM
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/Showfolio-gcojmkjetdjpshbeuqwspoawmjpu/Build/Intermediates.noindex/ArchiveIntermediates/Showfolio/IntermediateBuildFilesPath/Showfolio.build/Release-iphoneos/Showfolio.build/Script-00DD1BFF1BD5951E006B06BC.sh
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/Showfolio-gcojmkjetdjpshbeuqwspoawmjpu/Build/Intermediates.noindex/ArchiveIntermediates/Showfolio/IntermediateBuildFilesPath/Showfolio.build/Release-iphoneos/Showfolio.build/Script-00DD1BFF1BD5951E006B06BC.sh
(1 failure)
Exit status: 65
+-------------+-------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.185.1 |
| sdk | iPhoneOS14.5.sdk |
+-------------+-------------------------+
And the Xcode error:
cheerio from /Users/expo/workingdir/build/src/screens/Home.js: react-native-cheerio could not be found within the project.
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
4. Remove the cache: rm -rf /tmp/metro-*
e[0m e[90m 6 |e[39m e[36mimporte[39m { showMessagee[33m,e[39m hideMessage } e[36mfrome[39m e[32m"react-native-flash-message"e[39me[33m;e[39me[0m
e[0m e[90m 7 |e[39m e[36mimporte[39m { e[33mThemeContexte[39m } e[36mfrome[39m e[32m'../../theme-context'e[39me[33m;e[39me[0m
e[0me[31me[1m>e[22me[39me[90m 8 |e[39m e[36mimporte[39m cheerio e[36mfrome[39m e[32m'react-native-cheerio'e[39me[33m;e[39me[0m
e[0m e[90m |e[39m e[31me[1m^e[22me[39me[0m
e[0m e[90m 9 |e[39m e[36mimporte[39m htmlparser2 e[36mfrome[39m e[32m'htmlparser2'e[39me[0m
e[0m e[90m 10 |e[39m e[36mimporte[39m axios e[36mfrome[39m e[32m'axios'e[39me[33m;e[39me[0m
e[0m e[90m 11 |e[39m e[36mimporte[39m api e[36mfrome[39m e[32m'../API'e[39me[33m;e[39me[0m
at ModuleResolver.resolveDependency (/Users/expo/workingdir/build/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:191:15)
at DependencyGraph.resolveDependency (/Users/expo/workingdir/build/node_modules/metro/src/node-haste/DependencyGraph.js:353:43)
at Object.resolve (/Users/expo/workingdir/build/node_modules/metro/src/lib/transformHelpers.js:271:42)
at resolve (/Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/traverseDependencies.js:571:33)
at /Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/traverseDependencies.js:587:26
at Array.reduce (<anonymous>)
at resolveDependencies (/Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/traverseDependencies.js:586:33)
at /Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/traverseDependencies.js:275:33
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)
+ [[ false != true ]]
+ [[ ! -f /Users/expo/Library/Developer/Xcode/DerivedData/Showfolio-gcojmkjetdjpshbeuqwspoawmjpu/Build/Intermediates.noindex/ArchiveIntermediates/Showfolio/BuildProductsPath/Release-iphoneos/showfolio.app/main.jsbundle ]]
+ echo 'error: File /Users/expo/Library/Developer/Xcode/DerivedData/Showfolio-gcojmkjetdjpshbeuqwspoawmjpu/Build/Intermediates.noindex/ArchiveIntermediates/Showfolio/BuildProductsPath/Release-iphoneos/showfolio.app/main.jsbundle does not exist. This must be a bug with'
error: File /Users/expo/Library/Developer/Xcode/DerivedData/Showfolio-gcojmkjetdjpshbeuqwspoawmjpu/Build/Intermediates.noindex/ArchiveIntermediates/Showfolio/BuildProductsPath/Release-iphoneos/showfolio.app/main.jsbundle does not exist. This must be a bug with
+ echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
React Native, please report it here: https://github.com/facebook/react-native/issues
+ exit 2
Welcome to React Native!
Learn once, write anywhere
Error: @build-script-error-begin
Error loading assets JSON from Metro. Ensure you've followed all expo-updates installation steps correctly. Unable to resolve module react-native-cheerio from /Users/expo/workingdir/build/src/screens/Home.js: react-native-cheerio could not be found within the project.
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
4. Remove the cache: rm -rf /tmp/metro-*
e[0m e[90m 6 |e[39m e[36mimporte[39m { showMessagee[33m,e[39m hideMessage } e[36mfrome[39m e[32m"react-native-flash-message"e[39me[33m;e[39me[0m
e[0m e[90m 7 |e[39m e[36mimporte[39m { e[33mThemeContexte[39m } e[36mfrome[39m e[32m'../../theme-context'e[39me[33m;e[39me[0m
e[0me[31me[1m>e[22me[39me[90m 8 |e[39m e[36mimporte[39m cheerio e[36mfrome[39m e[32m'react-native-cheerio'e[39me[33m;e[39me[0m
e[0m e[90m |e[39m e[31me[1m^e[22me[39me[0m
e[0m e[90m 9 |e[39m e[36mimporte[39m htmlparser2 e[36mfrome[39m e[32m'htmlparser2'e[39me[0m
e[0m e[90m 10 |e[39m e[36mimporte[39m axios e[36mfrome[39m e[32m'axios'e[39me[33m;e[39me[0m
e[0m e[90m 11 |e[39m e[36mimporte[39m api e[36mfrome[39m e[32m'../API'e[39me[33m;e[39me[0m
@build-script-error-end