From c522e36df7ba4255ef0d2a17c589c4ac99b7e00a Mon Sep 17 00:00:00 2001 From: ivmartel Date: Fri, 3 Dec 2021 14:21:50 +0100 Subject: [PATCH] Use Konva.default when Konva comes as a module, fixes #1044 --- resources/module/intro.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/module/intro.js b/resources/module/intro.js index 19ad4e4dd3..4c58d57055 100644 --- a/resources/module/intro.js +++ b/resources/module/intro.js @@ -58,3 +58,9 @@ typeof i18next.t === 'undefined') { i18next = i18next.default; } + + // Konva (>=v8) comes as a module, see #1044 + if (typeof Konva !== 'undefined' && + typeof Konva.Group === 'undefined') { + Konva = Konva.default; + }