Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpgjs Module.exports never get set #43

Open
makr28 opened this issue Apr 26, 2018 · 0 comments
Open

jpgjs Module.exports never get set #43

makr28 opened this issue Apr 26, 2018 · 0 comments

Comments

@makr28
Copy link

makr28 commented Apr 26, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant