Skip to content
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. This must be a bug with "react-native": "0.63.4" #31025

Closed
SohaibKtb opened this issue Feb 22, 2021 · 12 comments
Closed
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@SohaibKtb
Copy link

SohaibKtb commented Feb 22, 2021

I figured out main.jsbundle does not exist. This must be a bug with issue after upgrading react native from 0.63.3 to 0.63.4 and it was solved,

but now when I tried to Archive a build the same error appears.

when I tried to see the main.jsbundle file from the path generated using archive build using cmd to see if it's exist, the path is true, but the file doesn't exist.

I thought that I did a wrong thing in my project, by adding a wrong code or something else in Xcode, then I created a new react-native project and tried to Archive a build, but the same error appears.
here is the system info:

    OS: macOS 11.2.1
    CPU: (8) arm64 Apple M1
    Memory: 126.23 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.7.0 - /opt/homebrew/bin/node
    Yarn: 1.22.10 - /opt/homebrew/bin/yarn
    npm: 7.4.3 - /opt/homebrew/bin/npm
    Watchman: 4.9.0 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK:
      API Levels: 23, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.3
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.7042882
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_275 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.4 => 0.63.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

thanks 🙏

@SohaibKtb SohaibKtb changed the title Ract main.jsbundle does not exist. This must be a bug with "react-native": "0.63.4" Feb 22, 2021
@teamzz111
Copy link

teamzz111 commented Feb 25, 2021

May you try with this?

#29351 (comment)

@SohaibKtb
Copy link
Author

@teamzz111, yes I tried it, the same error

@dezudas
Copy link

dezudas commented Mar 1, 2021

@teamzz111, same for me too tried #29351 (comment) too still no change :(

@teamzz111
Copy link

Are you using TS?

May you check your Bundle Config in Xcode -> BuildPhases - Bundle React Native Code

Captura de Pantalla 2021-03-01 a la(s) 12 06 05 a  m

@SohaibKtb
Copy link
Author

@teamzz111 no I am using JS

@appcoders
Copy link

We have the same issue. A regular build works, an archive build fails.

@29er
Copy link

29er commented Mar 3, 2021

same here. regular build works, archive fails !
main.jsbundle does not exist. This must be a bug with'
I tried the TS version above by @teamzz111 . but no luck
Please help . RN - 0.63.4

@awinograd
Copy link
Contributor

I ran into this in a mono-repo setting. The solution I found is here react-native-community/cli#656 (comment)

@jsamr
Copy link

jsamr commented Mar 11, 2021

See #31094 (comment)

@rabahaldoori
Copy link

any update goes same thinks

@stale
Copy link

stale bot commented Jan 9, 2022

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 9, 2022
@github-actions
Copy link

github-actions bot commented Feb 4, 2022

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as completed Feb 4, 2022
@facebook facebook locked as resolved and limited conversation to collaborators Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

8 participants