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
if(!pluginInstance)
throw new Error(`Plugin ${pluginName} has no instance`);
if(!pluginInstance[methodName])
throw new Error(`Plugin ${pluginName} has no method ${methodName}`);
I think that in this case, as in many others, doing console.warn is not the best thing, as it limits the error handling capability. In my case, I use Rollbar, and thrown errors are reported to me for review.
I get this error:
It happens for many plugins, but this stack trace is specifically the Rollbar one.
I think it would be good to have a check before this line: https://github.com/driftyco/ionic-native/blob/9074362caea1a13923d818d6d9714bb6a254c435/src/%40ionic-native/core/plugin.ts#L130
Something like:
I think that in this case, as in many others, doing
console.warn
is not the best thing, as it limits the error handling capability. In my case, I use Rollbar, and thrown errors are reported to me for review.Here is a full stack:
The text was updated successfully, but these errors were encountered: