From f47a87460dc1e4749687dc5c625ac7936209410e Mon Sep 17 00:00:00 2001 From: liyongning <396446793@qq.com> Date: Fri, 24 Dec 2021 18:58:44 +0800 Subject: [PATCH] fix: #876 --- src/runtimeContext.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtimeContext.ts b/src/runtimeContext.ts index 3df241ff..8b4cbbeb 100644 --- a/src/runtimeContext.ts +++ b/src/runtimeContext.ts @@ -43,7 +43,8 @@ export function isPluginInstalled() { } export function isVueRegistered(Vue: VueConstructor) { - return hasOwn(Vue, PluginInstalledFlag) + // resolve issue: https://github.com/vuejs/composition-api/issues/876#issue-1087619365 + return vueConstructor && hasOwn(Vue, PluginInstalledFlag) } export function getVueConstructor(): VueConstructor {