Ilyes-El-Majouti / pdftopic

Built for Node.js, this package empowers users to effortlessly convert PDF files into images of exceptional quality, supporting multiple formats including PNG, JPG, GIF, and others. Its streamlined functionality ensures a smooth and reliable conversion process, providing users with the flexibility to obtain top-notch images from their PDF documents
Apache License 2.0
27 stars 7 forks source link

TypeError: sharp.block is not a function #11

Closed mzaidsqbt closed 3 months ago

mzaidsqbt commented 4 months ago

Hi there I have installed the latest version of pdf-topic. My node version is 16.20.0 and I am encountering this error - TypeError: sharp.block is not a function

this is the version of sharp installed with the package.

npm list sharp

src@1.0.0 /Users/mohdzaidmultani/Desktop/Projects/contract-backend/src └─┬ pdftopic@1.0.6-alpha └── sharp@0.31.3

Please help!

TelmoFerreira commented 4 months ago

Same error here, any solution?

MykhailoMatiiasevychKlarna commented 3 months ago

Same error. Works with 1.0.4-alpha

Ilyes-El-Majouti commented 3 months ago

Hello, excuse me, I was on vacation, I'll sort it out during the day, sorry again.

Ilyes-El-Majouti commented 3 months ago

Hello, an update has been made to correct this problem.