vue-konva: Red error in console when canvas is empty
Hello, i’m having a ton of errors when i’m creating my canvas with nothing inside
Error in updated hook: "TypeError: Cannot read property 'getZIndex' of null"
found in
---> <VGroup>
...
My template is like so
<v-stage ref="stage" class="canvas" :config="configKonva">
<v-layer ref="layer">
<v-group :key="mainStage">
<BlockContainer />
<TriggerContainer />
<CurveContainer />
</v-group>
</v-layer>
</v-stage>
Any ideas? It’s not blocking the execution but I have a ton of these messages in red in the console
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (11 by maintainers)
Fixed in the last version with a better error message.
I see. Thanks for the demo. Such a use case is not supported. You can use only konva components.
I am going to add a better warning message.