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 anyone can run jimp in latest reactjs project? #1282

Closed
Programmer-AC opened this issue Mar 5, 2024 · 1 comment
Closed

Do anyone can run jimp in latest reactjs project? #1282

Programmer-AC opened this issue Mar 5, 2024 · 1 comment

Comments

@Programmer-AC
Copy link

Expected Behavior

I created a empty reacjt project install jimp and try to read a file in jimp. I suppose I will get Jimp object.

Current Behavior

But now I got jimp__WEBPACK_IMPORTED_MODULE_4___default

Failure Information (for bugs)

jimp__WEBPACK_IMPORTED_MODULE_4___default

Steps to Reproduce

  1. Create rejactjs project
  2. install Jimp - npm i jimp
  3. in App.tsx useEffect function to do Jimp.read('./test.jpg")

Screenshots

error

Context

  • Jimp Version: 0.22.12
  • Operating System: macOS
  • Node version: 10.4.0
  • Browser: Chrome

Failure Logs

@Programmer-AC
Copy link
Author

I tried a lot of time but still cannot make it work with reactjs 18.2.0 (webpack issue). I just need simple crop, resize and rotate functions. I switched to use image-js. If you do the image on server (nodejs), please keep jimp.

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