diff --git a/core/src/runtime.ts b/core/src/runtime.ts index 7ca2549e4..4fbc46739 100644 --- a/core/src/runtime.ts +++ b/core/src/runtime.ts @@ -198,6 +198,8 @@ export const createCapacitor = (win: WindowCapacitor): CapacitorInstance => { // https://github.com/facebook/react/issues/20030 case '$$typeof': return undefined; + case 'toJSON': + return () => ({}); case 'addListener': return pluginHeader ? addListenerNative : addListener; case 'removeListener':