You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: