Open
Description
I have a nodejs project and am running into issues with jpgjs. On line 102 it never goes into the if statement:
if (typeof exports === "function") {
module.exports = {
JpegImage: JpegImage,
JpegDecoder: JpegDecoder,
JpxDecoder: JpxDecoder,
Jbig2Decoder: Jbig2Decoder
};
}
In the console typeof exports is 'object' not 'function'.
I am using Utif.js in my project which has jpgjs as a dependency and pulls it in with require('jpgjs') but it can't find it.
Other maybe useful notes: I am using npm version 8.9.4
Thank you
Metadata
Metadata
Assignees
Labels
No labels