-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Description
I have installed Konva and Vue Konva in my project.
I used
Konva version 8.4.3
vue-konva version 3.0.2
then when use in page,
<template>
<v-stage :config="{ width: 200, height: 200 }">
<v-layer>
<v-circle :config="{ x: 100, y: 100, radius: 70, fill: "red", stroke: "black", strokeWidth: 4 }"></v-circle>
</v-layer>
</v-stage>
</template>and run in Firefox
I got error
Uncaught (in promise) TypeError: container.value is null
this is how I setup in my project
- create plugin
vue-konva.js
import VueKonva from 'vue-konva'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueKonva);
})- in nuxt.config.ts
plugins: [
...
{ src: '~/plugins/vue-konva', mode: 'client' },
]anyone can suggest me?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels