-
Notifications
You must be signed in to change notification settings - Fork 26
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
Compatibility with Node v16+ #20
Comments
Hey there, Please specify more details about the issue, OS, Node version, etc. |
I also get the error: My code:
My setup: Thanks for the effort with this repo. |
At this moment |
That was what was causing my issue then as I am using node v18. Thanks so much both of you for the help with this! My setup I have updated the issue name to be clear on the cause of the issue. |
That issue was due to Automattic/node-canvas#2025 now it's fixed with v2.10.2, maybe we can not use strict versions in |
Hey there,
I am running the following code in a docker container with Canvas successfully installed (at least my understanding based on install steps mentioned in other issues).
import { pdfToPng } from 'pdf-to-png-converter';
import { readFileSync } from 'node:fs';
a = readFileSync('routes/test_pdf/1650457668823.pdf')
pngPages = pdfToPng( a, {viewportScale: 1.0})
I am getting the following error and can't for the life of me understand whats wrong.
node: ../../nan/nan_object_wrap.h:32: static T* Nan::ObjectWrap::Unwrap(v8::Local<v8::Object>) [with T = Context2d]: Assertion object->InternalFieldCount() > 0' failed. Aborted
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: