GithubHelp home page GithubHelp logo

Comments (5)

jandetlefsen avatar jandetlefsen commented on August 20, 2024 3

Found the reason. Missing dependency. sudo apt-get install libpng16-dev did the trick

from react-redux-boilerplate.

flexdinesh avatar flexdinesh commented on August 20, 2024 2

@shadowae @LifeIsPizza I have updated the dependencies with this commit - 2bd8904

image-webpack-loader is known to have inconsistencies with other package versions in the past and I fixed it by updating the version as @LifeIsPizza mentioned. Now that I have updated all the dependencies to the latest stable version, hopefully this should have been fixed. Let me know if you still face this issue.

from react-redux-boilerplate.

PizzaMarinara avatar PizzaMarinara commented on August 20, 2024

Had a similar error for a libpng library:
libpng12.so.0: cannot open shared object file: No such file or directory

I resolved this by reinstalling with npm after editing the package.json file

"image-webpack-loader": "3.6.0",
to
"image-webpack-loader": "4.2.0",

And then it ran smoothly.
Hope this helps

---- EDIT

I've also tried this to make it work:
"image-webpack-loader": ">=3.6.0",
And then running
yarn update
before starting, to ensure the latest packages are used.

from react-redux-boilerplate.

jandetlefsen avatar jandetlefsen commented on August 20, 2024

Getting the same error with the current project state. After git pull, npm install and npm start i ended up with [email protected] and the described error.

EDIT: npm start doesn't show this error but it shows when i do the first request via browser if that makes a difference.

`ERROR in ./app/components/Header/images/banner.jpg
Module build failed (from ./node_modules/image-webpack-loader/index.js):
Error: Command failed: /home/django/react_frontend/node_modules/mozjpeg/vendor/cjpeg
/home/django/react_frontend/node_modules/mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory

at Promise.all.then.arr (/home/django/react_frontend/node_modules/imagemin-mozjpeg/node_modules/execa/index.js:236:11)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)

@ ./app/components/Header/Header.js 11:0-41 33:44-50
@ ./app/components/Header/index.js
@ ./app/containers/App/App.js
@ ./app/containers/App/index.js
@ ./app/app.js
@ multi eventsource-polyfill webpack-hot-middleware/client?reload=true ./app/app.js`

EDIT: i've tried a downgrade to [email protected] with the same results.

from react-redux-boilerplate.

flexdinesh avatar flexdinesh commented on August 20, 2024

This image webpack loader has system dependencies and they differ from one OS to another. It's been such a bummer since the beginning and we gotta figure out a platform independent way to get this to work.

Thanks @jandetlefsen , I'm gonna close this issue out for now.

from react-redux-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.