-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use in nuxt 3 #251
Comments
Please make a small repository to reproduce. The quick solution can be just installing canvas library: |
here's a repo - https://github.com/odetolakehinde/nuxt-konva this does not seem to work:
|
cc @lavrton |
if you just want to solve the problem quickly, you can try to turn off ssr with "ssr: false" |
You need to change the name of your plugin from Every components using konva components need to be |
@odetolakehinde, to fix the issue you reported on #244 (this one specifically) about import VueKonva from 'vue-konva'
import Konva from 'konva'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueKonva, { Konva })
}) I provided enough |
Error:
![image](https://private-user-images.githubusercontent.com/26208992/374464028-3140b086-7ecc-4764-91c2-dc3a6a8fa06e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDAyMDYsIm5iZiI6MTczOTIzOTkwNiwicGF0aCI6Ii8yNjIwODk5Mi8zNzQ0NjQwMjgtMzE0MGIwODYtN2VjYy00NzY0LTkxYzItZGMzYTZhOGZhMDZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDAyMTE0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdhZGJjYTA2Mzg2NTAwNDBlMDVmMzQ4ZmRkZGU3MGFjZDU5ZGJlMWY5NTgwODJkYmE3NDcxYmE3NzM3Y2VjYWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.znNjdwo6GQuvBqG8dOdoA897WbUOPFfoPb6imqupq00)
package.json
plugins/konva.ts
nuxt.config.ts
The text was updated successfully, but these errors were encountered: