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

Cannot read properties of undefined (reading 'replace') #1178

Closed
sergeushenecz opened this issue Feb 6, 2023 · 8 comments · Fixed by #1184
Closed

Cannot read properties of undefined (reading 'replace') #1178

sergeushenecz opened this issue Feb 6, 2023 · 8 comments · Fixed by #1184
Labels
released This issue/pull request has been released.

Comments

@sergeushenecz
Copy link

Expected Behavior

Without error.

Current Behavior

image

Failure Information (for bugs)

After update to 0.22.1 error appears.

Steps to Reproduce

  1. Update to 0.22.1
  2. import Jimp from 'jimp/browser/lib/jimp';

Context

  • Jimp Version: 0.22.1
  • Operating System: mac os.
  • Node version: 14.20.0
@hipstersmoothie
Copy link
Collaborator

Could you provide a simple repro

@marvinruder
Copy link

Similar issue for me, using the browser version as well. Error message reads undefined is not an object (evaluating '(k.env.__TESTING_MKDIRP_NODE_VERSION__ || k.version).replace').

Also reproducable by simply opening example2.html in a browser.

marvinruder added a commit to marvinruder/rating-tracker that referenced this issue Feb 6, 2023
marvinruder added a commit to marvinruder/rating-tracker that referenced this issue Feb 6, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

🚀 Issue was released in v0.22.3 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Feb 6, 2023
@sergeushenecz
Copy link
Author

sergeushenecz commented Feb 7, 2023

@hipstersmoothie after updated to last i have another issue. in "jimp": "0.16.2", all good. work as excepted.
image

@marvinruder marvinruder mentioned this issue Feb 7, 2023
3 tasks
@marvinruder
Copy link

Looks like the “… is undefined / not a function” issue from #1194 to me.

@sergeu90 Are you still using the browser/lib/jimp.js version as mentioned above? I can reproduce the issue for the "jimp" or "jimp/es" import, but not the browser version.

@sergeushenecz
Copy link
Author

@marvinruder Yes. I import with browser/lib/jimp.js

@marvinruder
Copy link

Okay, this is odd, Browser import always still worked fine for me. @sergeu90 Can you share an MWE to reproduce the issue with browser/lib/jimp.js, perhaps in a small repository?

@simonandywilson
Copy link

I'm also getting the error TypeError: Cannot read properties of undefined (reading 'replace') when importing v0.22.7 of Jimp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants