pdf-to-png-converter icon indicating copy to clipboard operation
pdf-to-png-converter copied to clipboard

TypeError: Cannot read properties of undefined (reading 'prototype')

Open fabianobonomini opened this issue 1 year ago • 5 comments

I one of my jest test. using typescript. I got this error

2 | import request from 'supertest'; 3 | import { configureToMatchImageSnapshot } from 'jest-image-snapshot'; 4 | import { PngPageOutput, pdfToPng } from 'pdf-to-png-converter'; | ^ 5 | import { app, disposeResources, mongoClient } from '../app';

any ideas?

fabianobonomini avatar Nov 06 '23 15:11 fabianobonomini

I have the same error

mtbrum avatar Dec 28 '23 18:12 mtbrum

Same here

MattRiddell avatar Mar 11 '24 18:03 MattRiddell

same error

Mustafa-Aswadi avatar Mar 24 '24 10:03 Mustafa-Aswadi

Same

andrewkrippner avatar Apr 30 '24 00:04 andrewkrippner

It appears this occurs on Node 16 but not Node 20.

andrewkrippner avatar Apr 30 '24 04:04 andrewkrippner

node 16 is not supported. minimal version is 18

and also Jest doesn’t natively support ESM yet, so I use vitest instead

dichovsky avatar Aug 30 '24 21:08 dichovsky