Skip to content
This repository was archived by the owner on Mar 17, 2023. It is now read-only.
This repository was archived by the owner on Mar 17, 2023. It is now read-only.

Unable to load image files #51

@EvHaus

Description

@EvHaus

After upgrading to 3.0.0, I'm getting this error:

 ERROR in ./static/dist/images/products/Product_Landing_Quote.jpg
[2]     Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
[2]       Referenced from: /Users/ev/Git/cumul8.com/node_modules/mozjpeg/vendor/cjpeg
[2]       Reason: image not found
[2]     
[2]         at Promise.all.then.arr (/Users/ev/Git
[2] /cumul8.com/node_modules/execa/index.js:170:11)
[2]         at process._tickCallback (internal/process/next_tick.js:103:7)
[2]      @ ./~/css-loader?module&localIdentName=[name]__[local]___[hash:base64:5]!./~/postcss-loader!./~/stylus-loader!./src/styles/pages/Products.styl 6:2152-2225

This error doesn't happen on the 2.x.x version.

Activity

shelldandy

shelldandy commented on Nov 3, 2016

@shelldandy

I'm having that same issue ☹️ no idea what's going on

shelldandy

shelldandy commented on Nov 3, 2016

@shelldandy

Found the solution as random as it seems its all fixed by running brew install libpng wtf is going on haha

codylindley

codylindley commented on Nov 8, 2016

@codylindley

Same issue, @Mike3run fix, resolved it. Stinks this has to be done.

Igor-Gold

Igor-Gold commented on Nov 24, 2016

@Igor-Gold

I had the same issue on Ubuntu 16.10.

Apparently, they removed libpng12 in favor of libpng16?
In any case, here's the link for downloading the library.

tcoopman

tcoopman commented on Dec 27, 2016

@tcoopman
Owner

This looks similar to imagemin/imagemin-mozjpeg#23
Could you report this bug at https://github.com/imagemin/imagemin-mozjpeg?

tcoopman

tcoopman commented on Dec 27, 2016

@tcoopman
Owner

The true reason is found here: imagemin/mozjpeg-bin#18

davidnguyen11

davidnguyen11 commented on Jan 17, 2017

@davidnguyen11

Found the solution as random as it seems its all fixed by running brew install libpng wtf is going on haha

this solution worked for me. Thank @Mike3run

modernserf

modernserf commented on Jan 18, 2017

@modernserf
Contributor

Is this "the new normal"? Will this be documented in the readme?

tcoopman

tcoopman commented on Jan 18, 2017

@tcoopman
Owner

It would be nice if someone could document this issue in the readme and submit a PR.

tcoopman

tcoopman commented on Jan 19, 2017

@tcoopman
Owner

I'll close this for the moment. It's not fixed but it's documented in the README (see #66). Thanks @modernserf

34 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tcoopman@codylindley@EvHaus@lensisle@bamacaerick

        Issue actions

          Unable to load image files · Issue #51 · tcoopman/image-webpack-loader