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

Jimp.decoders is undefined in browser with webpack and typescript #1276

Open
smithbk opened this issue Feb 10, 2024 · 0 comments · May be fixed by #1285
Open

Jimp.decoders is undefined in browser with webpack and typescript #1276

smithbk opened this issue Feb 10, 2024 · 0 comments · May be fixed by #1285

Comments

@smithbk
Copy link

smithbk commented Feb 10, 2024

Expected Behavior

I am expecting Jimp.decoders to be defined when running in a browser using webpack and typescript

Current Behavior

Jimp.decoders (and other fields) is undefined

Failure Information (for bugs)

An exception is thrown when trying to reference any field in Jimp.

Steps to Reproduce

  1. Unzip the attached jimp.zip
    jimp.zip
  2. cd jimp
  3. npm run debug
  4. open browser to "http://localhost:4000". View the browser console output (via inspect in Chrome) and you will see the log message with the value of "Jimp.decoders".

Screenshots

Context

  • Jimp Version: 0.22.10
  • Operating System: macOS Ventura 13.6.3
  • Node version: 16.20.2

Failure Logs

@hipstersmoothie hipstersmoothie linked a pull request Mar 28, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant