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

Do you support vite? #1244

Open
suzhenghui-sky opened this issue Jun 15, 2023 · 4 comments · May be fixed by #1285
Open

Do you support vite? #1244

suzhenghui-sky opened this issue Jun 15, 2023 · 4 comments · May be fixed by #1285

Comments

@suzhenghui-sky
Copy link

Expected Behavior

jimp.read should not be undefined

Current Behavior

jimp.read is undefined

Failure Information (for bugs)

import Jimp from 'jimp';
console.log(Jimp.read) // undefined

Steps to Reproduce

Screenshots

Context

  • Jimp Version: "^0.22.8",
  • Operating System: window 10
  • Node version: v18.16.0

Failure Logs

@suzhenghui-sky
Copy link
Author

图片

@mustafaekim
Copy link

Is it possible to use Jimp with vite?

@suzhenghui-sky
Copy link
Author

Is it possible to use Jimp with vite?

I don't think so.

@JasonKwok8588
Copy link

are you use in web browser?
you can try :
import "jimp/browser/lib/jimp.js";
console.log(Jimp.read)

@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.

3 participants