Skip to content

Commit 3c2ad93

Browse files
authored
fix: improve register check, close #876 (#878)
1 parent a1a3e11 commit 3c2ad93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtimeContext.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export function isPluginInstalled() {
4343
}
4444

4545
export function isVueRegistered(Vue: VueConstructor) {
46-
return hasOwn(Vue, PluginInstalledFlag)
46+
// resolve issue: https://github.com/vuejs/composition-api/issues/876#issue-1087619365
47+
return vueConstructor && hasOwn(Vue, PluginInstalledFlag)
4748
}
4849

4950
export function getVueConstructor(): VueConstructor {

0 commit comments

Comments
 (0)