microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.99k stars 1.47k forks source link

Could not get BatchedBridge, make sure your bundle is packaged correctly #2194

Closed gentlee closed 2 years ago

gentlee commented 2 years ago

Steps to Reproduce

  1. Make any ts file changes
  2. Code push to staging (appcenter codepush release-react -a appname -d Staging -t 1.2.3)
  3. CodePush.sync({ installMode: CodePush.InstallMode.IMMEDIATE }) is called on next app launch, update is downloaded and app restarted
  4. App crashes with that error
  5. Next app launch is fine but without new changes

Expected Behavior

App shouldn't crash on codepush updates

Actual Behavior

RCTFatalException: Could not get BatchedBridge, make sure your bundle is packaged correctly

facebook::react::JSIExecutor::defaultTimeoutInvoker

Environment

gentlee commented 2 years ago

Bundling manually and using "-c ios/main.jsbundle" option with "appcenter codepush release-react" doesn't help.

Seems that there is a bug on appcenter side while transforming js bundle to code push bundle or back.

gentlee commented 2 years ago

Issue fixed by using appcenter-cli 2.9.0, but bundle is not converted to hermes format.

dubynam commented 2 years ago

Hey, got the same issue with android build.

NomanAfzal26 commented 2 years ago

Hey got the same problem with cross application

herujest commented 2 years ago

Any update? I got the same issue

NomanAfzal26 commented 2 years ago

hi, I was using EXPO and resolved the issue by upgrading and then downgrading it to the previous one.

On Wed, Feb 2, 2022 at 10:06 AM Sergey Petrov @.***> wrote:

Any update? I got the same issue

— Reply to this email directly, view it on GitHub https://github.com/microsoft/react-native-code-push/issues/2194#issuecomment-1027583246, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVDDMPWRFKM6BY2LQHKDPJTUZC3UVANCNFSM5KNVQLMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

ghost commented 2 years ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

NomanAfzal26 commented 2 years ago

thenkx man for your time

Noman Afzal +92 308 383 3433 @.***

On 6 Apr 2022, at 18:01, msftbot[bot] @.***> wrote:

 This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

ghost commented 2 years ago

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

ghost commented 2 years ago

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

Pavel-Lunin commented 1 year ago

npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

privatepej commented 11 months ago

Any update? I got the same issue

hepoblet commented 11 months ago

I have this problem on iOS, any idea how to solve it?