konvajs / vue-konva

Vue & Canvas - JavaScript library for drawing complex canvas graphics using Vue.
https://konvajs.github.io/docs/vue/
MIT License
1.15k stars 131 forks source link

TypeError: Cannot set properties of null (setting 'innerHTML') #236

Open thepacketloss opened 5 months ago

thepacketloss commented 5 months ago

When v-stage component mounts I get this error in browser console and it only happens in dev environment and it does not happen when I build the project :

vue-konva.js?v=5ad2e738:46876 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'innerHTML')
    at vue-konva.js?v=5ad2e738:46876:43
    at vue-konva.js?v=5ad2e738:27982:158
    at callWithErrorHandling (vue-konva.js?v=5ad2e738:25392:23)
    at callWithAsyncErrorHandling (vue-konva.js?v=5ad2e738:25399:21)
    at hook.__weh.hook.__weh (vue-konva.js?v=5ad2e738:27964:23)
    at flushPostFlushCbs (chunk-TQCBFGB5.js?v=5ad2e738:1817:41)
    at flushJobs (chunk-TQCBFGB5.js?v=5ad2e738:1855:5)

Package versions :

Vue : 3.4.21 Vue-konva : 3.0.2 Konva : 9.3

kkparkclouflake commented 4 months ago

May https://github.com/konvajs/vue-konva/issues/233#issuecomment-2078462301 can resolve this issue.

UTing1119 commented 3 months ago

@kkparkclouflake thanks I try it and it works will you open a PR?

iampawan31 commented 2 months ago

I am facing this exact issue when using quasar with vue3. Has anyone found a possible solution to this?