I am getting an error message in the Firefox console for the simplest possible Konva demo. The HTML page:
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/konva@4.1.0/konva.min.js"></script>
<meta charset="utf-8" />
<title>Konva Warning Demo</title>
</head>
<body>
<div id="container"style="width: 800px;height: 600px;" ></div>
<script>
var stage = new Konva.Stage({
container: 'container',
width: 3000,
height: 3000,
});
</script>
</body>
</html>
gives me this set of messages in the console:
Expected declaration but found ‘[’. Skipped to next declaration. 3 konvatest.html
Error in parsing value for ‘width’. Declaration dropped. konvatest.html
Error in parsing value for ‘height’. Declaration dropped. konvatest.html
It doesn't give me line numbers, but I'm concerned that the values for width and height may not be getting set. And I don't understand the issue with '[' at all.
If I comment out the declaration of Konva.Stage, the messages go away.
Is this a non-issue or just a peculiarity of Firefox? Or is it something I might be doing wrong in the declaration?
Thanks.