Skip to content

Commit 25d5289

Browse files
authored
fix: use named version from 'vue' (#470)
1 parent 3dafdc9 commit 25d5289

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

playground/layouts/error.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
<script>
88
export default {
9-
props: ['error']
9+
props: {
10+
error: Error
11+
}
1012
}
1113
</script>

src/runtime/app.plugin.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Vue from 'vue'
1+
import Vue, { version } from 'vue'
22
import { createHooks } from 'hookable'
33
import { callWithNuxt, setNuxtAppInstance } from '#app'
44

@@ -43,7 +43,7 @@ export default async (ctx, inject) => {
4343
use (vuePlugin) {
4444
runOnceWith(vuePlugin, () => vuePlugin.install(this))
4545
},
46-
version: Vue.version
46+
version
4747
},
4848
provide: inject,
4949
globalName: 'nuxt',

0 commit comments

Comments
 (0)