New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"main.jsbundle does not exist" error when building iOS version with Expo SDK 48 #21542
Comments
Here's my xcode log: |
same problem here |
@aliy321 have you found the solution? could you share to us? |
I create a new app and slowly port 1 by 1 over to find the issue, not sure what causes it too but after porting 1by1 and having the same code it work HAHAHA |
Hiya, I still had this issue with SDK 48.x and nothing worked, but after about 24h I stumpled upon this comment on StackOverflow: https://stackoverflow.com/questions/74141628/how-do-i-debug-this-error-error-error-resolvedependencies-found-duplicate-d This is what worked:
|
@cspeer It works well. I spent a long time working on a fix and this was the right one. Thank you! |
The problem are the version conflict on React-native and metro-config for my case.
To upgrade metro-config version you can follow this suggestion.
After follow this instruction everything work as magic!! ref |
I had this error too. I was using expo router. Just need to do these steps https://docs.expo.dev/routing/installation/ Most importantly in
if you're using SDK 48 |
I have the same issue and nothing worked for me. This is my package.json: |
I have the same problem where the bundle is not found. However my xcode logs have no other errors. package.json: { xCode logs: |
Summary
Upgraded my app to expo 48 and when i try to eas build -p ios --auto-submit, fastlane return error stating,
❌ error: File /Users/expo/Library/Developer/Xcode/DerivedData/myhadeeth-hiaplixirxjnvmeiueeslgnqimmw/Build/Intermediates.noindex/ArchiveIntermediates/XXX/BuildProductsPath/Release-iphoneos/XXXX.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
Managed or bare workflow?
managed
What platform(s) does this occur on?
iOS
Package versions
{
"name": "xxxx",
"version": "1.0.0",
"private": true,
"scripts": {
"android": "expo start --android",
"build:android": "eas build -p android",
"build:ios": "eas build -p ios",
"ios": "expo start --ios",
"main": "index.js",
"start": "expo start",
"web": "expo start --web"
},
"resolutions": {
"metro": "^0.73.7",
"metro-resolver": "^0.73.7"
},
"dependencies": {
"@babel/preset-env": "^7.20.2",
"@babel/runtime": "^7.21.0",
"@freakycoder/react-native-helpers": ">= 0.0.21",
"@react-native-async-storage/async-storage": "^1.17.11",
"@supabase/supabase-js": "^2.8.0",
"dotenv": "^16.0.3",
"expo": "^48.0.5",
"expo-av": "~13.2.1",
"expo-constants": "~14.2.1",
"expo-haptics": "~12.2.1",
"expo-linking": "~4.0.1",
"expo-location": "~15.1.1",
"expo-router": "^1.2.0",
"expo-sensors": "~12.1.1",
"expo-splash-screen": "~0.18.1",
"expo-status-bar": "~1.4.4",
"nativewind": "^2.0.11",
"postcss": "^8.4.21",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.7.1",
"react-native": "0.71.3",
"react-native-easy-grid": "^0.2.2",
"react-native-gesture-handler": "^2.9.0",
"react-native-reanimated": "~2.14.4",
"react-native-root-toast": "^3.4.1",
"react-native-safe-area-context": "4.5.0",
"react-native-screens": "~3.20.0",
"react-native-svg": "13.4.0",
"react-native-url-polyfill": "^1.3.0",
"react-native-vector-icons": "^9.2.0",
"react-native-web": "~0.18.7"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-root-import": "^6.6.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"react-native-dotenv": "^3.4.8",
"tailwindcss": "^3.2.7"
},
"overrides": {
"metro": "^0.73.7",
"metro-resolver": "^0.73.7"
}
}
Environment
expo-env-info 1.0.5 environment info:
System:
OS: macOS 12.6
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.1 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.19.2 - /usr/local/bin/npm
Managers:
CocoaPods: 1.12.0 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9514443
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
npmPackages:
expo: ^48.0.5 => 48.0.5
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.71.3 => 0.71.3
react-native-web: ~0.18.7 => 0.18.12
npmGlobalPackages:
eas-cli: 3.7.2
expo-cli: 6.3.2
Expo Workflow: managed
Reproducible demo
Not sure if babel is the issue but here's my babel.
module.exports = function (api) {
api.cache(true);
return {
presets: ["babel-preset-expo"],
plugins: [
"nativewind/babel",
'transform-inline-environment-variables', ["module:react-native-dotenv"],
"@babel/plugin-proposal-export-namespace-from",
"react-native-reanimated/plugin",
require.resolve("expo-router/babel"),
["module-resolver",
{
root: ["./app"],
alias: {
"@components": "./app/components",
"@pages": "./app/pages",
"@assets": "./assets",
"@context": "./app/context",
"@lib": "./lib",
},
}]
],
};
};
my app.json
{
"expo": {
"scheme": "xxx",
"name": "xxx",
"slug": "xxx",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.anonymous.my-hadeeth",
"infoPlist": {
"NSLocationAlwaysAndWhenInUseUsageDescription": "App requires geolocation to improve the quality of the service",
"NSLocationAlwaysUsageDescription": "App requires geolocation to improve the quality of the service",
"NSLocationWhenInUseUsageDescription": "App requires geolocation to improve the quality of the service",
"UIBackgroundModes": [
"remote-notification",
"audio",
"fetch",
"location"
]
}
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
},
"package": "com.anonymous.myhadeethNew"
},
"web": {
"favicon": "./assets/favicon.png",
"bundler": "metro"
},
"extra": {
"eas": {
"projectId": "c62a81be-a4d6-4ed1-9ff9-eb725babc6e7"
}
}
}
}
Stacktrace (if a crash is involved)
none
The text was updated successfully, but these errors were encountered: