You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.
When debugging or developing an app using a web browser (for example for styling development), CodePush throws an uncaught exception that does not come from the app's source code.
Additional Information
This issue does not happen with other Capacitor plugins that are "mobile-only". A good example is the Firebase notification plugin.
I know that. But simply importing the plugin, registering it, causes the exception. On the contrary, other Capacitor or Cordova plugins catch these exceptions.
Perhaps doing something like this would be acceptable ?
letcodePushInstance: CodePush|null=null;if(Capacitor.getPlatform()!=='web'){codePushInstance=newCodePush();(windowasany).codePush=codePushInstance;}else{/* Can't use CodePush without Capacitor *//* The instance will be null */}exportconstcodePush: CodePush|null=codePushInstance;
The downside is that the nullish case should be managed by the developer usign this package.
Clovel
added a commit
to loginline/capacitor-codepush
that referenced
this issue
Sep 20, 2021
Description
When debugging or developing an app using a web browser (for example for styling development), CodePush throws an uncaught exception that does not come from the app's source code.
Additional Information
This issue does not happen with other Capacitor plugins that are "mobile-only". A good example is the Firebase notification plugin.
Screenshots
Exception :
Code extract :

The text was updated successfully, but these errors were encountered: