pdf-to-png-converter
pdf-to-png-converter copied to clipboard
TypeError: Cannot read properties of undefined (reading 'prototype')
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?
I have the same error
Same here
same error
Same
It appears this occurs on Node 16 but not Node 20.
node 16 is not supported. minimal version is 18
and also Jest doesn’t natively support ESM yet, so I use vitest instead