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
Canvas node not working #22
Comments
Thanks for reporting, there are no dependencies in package.json, just dev dependencies. But yeah, it looks to be a breaking change in the latest version of |
Ok, so this only breaks in But running |
I would agree to avoid an unstable release, but probably it would be a good idea to add instruction about how to install the correct version of Canvas (or add optional code to work on both). |
Well normally I'd say if someone is using an alpha package, the onus is on them to get it working. However this situation is slightly different, because installing I don't have an issue merging this in if the API is unlikely to change. I will raise an issue on the |
I totally agree with you, but many libraries I've see over time do similar strange things and use alpha as stable (ghost is a good example of the never ending alpha-beta game).
So my guess is that they pushed by mistake a release on the main repo |
Yeah, I noticed that too, opened an issue for clarification. |
Exactly what happened, fixed now 👌 |
amazing \o/ |
Great, as soon as |
Sounds smart, we cannot guarantee that that api will be the final 2.x 👍 |
Hey, it's 2.2.0 (I'm talking about canvas) now but the problem actually still persists even on stable releases. I've had to install a 1-year-old 1.6.7 version to make marge-images working with canvas... With newer versions the script bails out with a "no constructor" error. |
here's a snippet that makes it work for me, @chernikovalexey: const { Canvas, Image } = require('canvas');
Canvas.Image = Image; then you can pass |
Thanks for your work @TobiTenno but I think merge-images should just be updated to work with
|
I have a code which it seems the same as your example page
But I get the error
If I console log Canvas I have the following
So I tried to change the code above to
After this change it seems to be fine with the constructor but it fails the line after with
I wonder if it's a bug with the new version of a dependency (I noticed you don't pin them).
Do your test run a new npm install? is this functionality tested?
Thanks a lot
The text was updated successfully, but these errors were encountered: