Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

y.Group is not a constructor #1055

Closed
ivmartel opened this issue Dec 9, 2021 · 3 comments
Closed

y.Group is not a constructor #1055

ivmartel opened this issue Dec 9, 2021 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@ivmartel
Copy link
Owner

ivmartel commented Dec 9, 2021

When running in a node context, calling app.init(...) throws:

TypeError: y.Group is not a constructor
at new A.tool.Draw (/home/yves/dev/src/github/local/node/parse/node_modules/dwv/dist/dwv.min.js:3:377913)
at A.App.init (/home/yves/dev/src/github/local/node/parse/node_modules/dwv/dist/dwv.min.js:3:4228)

@ivmartel ivmartel added the bug Something isn't working label Dec 9, 2021
@ivmartel ivmartel added this to the 0.30.3 milestone Dec 9, 2021
@ivmartel
Copy link
Owner Author

ivmartel commented Dec 9, 2021

Ok, should have read the docs: the proper way to include Konva in a commonjs module is require('konva/cmj')...

Ref: https://github.com/konvajs/konva/tree/8.3.0#commonjs-modules

@dayrenlim
Copy link

Having issue when using draw tools, it will be show y.Group is not a constructor. How to resolve it?

@ivmartel
Copy link
Owner Author

This should have been fixed in v0.30.3. The current version is v0.31. Which version are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants