-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Support NodeJS 4.x - Upgrade Canvas #556
Conversation
Good good good! Thanks a lot. It doesn't work with node 5, though, I think. I get |
4 is LTS. Probably need to rm rf your node_modules folder and reinstall all modules, that should fix the module error you saw. Sent from my iPhone
|
There is a significant change to the way canvases compute size; do you know if font loading changed? Edit: looks like I studied it a bit a while ago: #458. TL;DR: this commit broke node-canvas Automattic/node-canvas@7522aca, and this patch Automattic/node-canvas#543 fixes it, but nobody reviewed it, and one of the maintainers suggests this patch Automattic/node-canvas#628 which simply reverts the issue. One option is to switch to pdfkit: #496, which looks more and more like the way out. |
This error is because the module that is being loaded was compiled for an older version of Node.js than is running. It can be fixed with
I'm sorry that this haven't been properly reviewed yet. I posted a comment there and I'll be happy to test it once it's been rebased on master. Re. the path, I would recommend using I'll be happy to help you get this working with the latest version of canvas 👍 |
+1 |
@ekristen The build of the docker image fails with the version 1.3.0 of the lib canvas. You may need to update the Dockerfile as it is based on the image node:0.12.7. |
I'll take a look. |
Made obsolete by #496, which switched from canvas to pdfkit. |
Updating Canvas to 1.3.0 allows this to build under NodeJS 4.x