diff --git a/packages/browser/src/browser/index.ts b/packages/browser/src/browser/index.ts index 783e778e1..5ca3d7dca 100644 --- a/packages/browser/src/browser/index.ts +++ b/packages/browser/src/browser/index.ts @@ -311,7 +311,7 @@ async function registerPlugins( for (const b of bufferedRegisterCalls) { await analytics .register(...(b.args as Plugin[])) - .then((ctx) => b.resolve(ctx as any)) + .then((ctx) => b.resolve(Promise.resolve(ctx))) .catch((err) => b.reject(err)) } const ctx = await analytics.register(...toRegister)