Image is not defined
Image is not defined in react-lightbox-component/build/webpack:/src/lib/components/Image.jsx:272:1
using with nextjs
Image is not defined
ReferenceError: Image is not defined
at Object.
Getting this error when i do gatsby build
^
2 | //# sourceMappingURL=index.js.map
WebpackError: ReferenceError: Image is not defined
-
index.js:1 Object.
node_modules/react-lightbox-component/build/index.js:1:32853 -
index.js:1 t node_modules/react-lightbox-component/build/index.js:1:486
-
index.js:1 Object.
node_modules/react-lightbox-component/build/index.js:1:12175 -
index.js:1 t node_modules/react-lightbox-component/build/index.js:1:486
-
index.js:1 Object.
node_modules/react-lightbox-component/build/index.js:1:9190 -
index.js:1 t node_modules/react-lightbox-component/build/index.js:1:486
-
index.js:1 Object.
node_modules/react-lightbox-component/build/index.js:1:8559 -
index.js:1 t node_modules/react-lightbox-component/build/index.js:1:486
-
index.js:1 Object.defineProperty.value node_modules/react-lightbox-component/build/index.js:1:8464
-
index.js:1 t node_modules/react-lightbox-component/build/index.js:1:486
-
index.js:1 t.exports node_modules/react-lightbox-component/build/index.js:1:847
-
index.js:1 node_modules/react-lightbox-component/build/index.js:1:864
-
index.js:1 ./node_modules/react-lightbox-component/build/index.js.n node_modules/react-lightbox-component/build/index.js:1:70
-
index.js:1 Object../node_modules/react-lightbox-component/build/index.js node_modules/react-lightbox-component/build/index.js:1:372
-
demonstration.js:1 Module../src/pages/demonstration.js src/pages/demonstration.js:1:1
Any solution for this?
I am also getting the same error after in my react- node project.