Open JaPod993 opened 4 years ago
Thank you for using vue-8-puzzle and giving feedback.
DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
In my component this error occurs when
<template>
<div class="container">
<puzzle-board v-if="show"
:autoResize="true"
:src="src"
/>
</div>
</template>
<style>
.container {
width: 0px; /* this causes error */
}
</style>
Could you check if the container's size has zero value? If it still does not work, I'd like to have more detail (The code to reproduce and full client log).
Hi, I'm having trouble implementing your game in my vue project.
im tring to use this ad component like that:
But whatever i do there is always this error: DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
When I inspect the network it seems taht my image is loading fine so i don't know what's the problem. Can yiu give me any clues?