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

Image not defined #29

Closed
kasperaamodt opened this issue Feb 1, 2021 · 4 comments · Fixed by #47
Closed

Image not defined #29

kasperaamodt opened this issue Feb 1, 2021 · 4 comments · Fixed by #47

Comments

@kasperaamodt
Copy link

Hi, installed this component today, and whenever i try to use it, I get a ReferenceError:

ReferenceError: Image is not defined
at eval (webpack-internal:///./node_modules/react-simple-image-slider/dist/index.js:4:2477)
at Array.map ()
at eval (webpack-internal:///./node_modules/react-simple-image-slider/dist/index.js:4:2462)
at eval (webpack-internal:///./node_modules/react-simple-image-slider/dist/index.js:4:2820)
at Module../node_modules/react-simple-image-slider/dist/index.js

@kimcoder
Copy link
Owner

Hi, @kasperaamodt Can you try to install v2.0.2?

@kasperaamodt
Copy link
Author

I tried it again today, still Image not defined.

@camilojm27
Copy link

camilojm27 commented Jun 11, 2021

I got the same with Next.JS

ReferenceError: Image is not defined at node_modules/react-simple-image-slider/dist/ImageSlider.js:59:5 at Array.map (<anonymous>) at node_modules/react-simple-image-slider/dist/ImageSlider.js:58:51 at Object.<anonymous> (/home/camilo/Projects/celina/frontend/node_modules/react-simple-image-slider/dist/ImageSlider.js:85:2) at Module._compile (node:internal/modules/cjs/loader:1109:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10) at Module.load (node:internal/modules/cjs/loader:989:32) at Function.Module._load (node:internal/modules/cjs/loader:829:14) at Module.require (node:internal/modules/cjs/loader:1013:19) at require (node:internal/modules/cjs/helpers:93:18) { type: 'ReferenceError' }

Error is on file 'ImageSlider.js' line 59
return new Image();

Oh im using version 1.0.4 because it worked fine the first time, the latest breaks everithing xd

@kimcoder kimcoder linked a pull request Jun 16, 2021 that will close this issue
@kimcoder
Copy link
Owner

@kasperaamodt, @camilojm27
Hi Guys,
This issue are resolved in v2.1.1.

Thanks 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

Successfully merging a pull request may close this issue.

3 participants