Skip to content

Commit

Permalink
Use Konva.default when Konva comes as a module, fixes #1044
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Dec 3, 2021
1 parent f075178 commit c522e36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/module/intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

2 comments on commit c522e36

@icaroxavier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still bugged for me

@ivmartel
Copy link
Owner Author

@ivmartel ivmartel commented on c522e36 Dec 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1045.

Please sign in to comment.