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

JPG files do not work #103

Closed
iamacup opened this issue Sep 22, 2017 · 2 comments
Closed

JPG files do not work #103

iamacup opened this issue Sep 22, 2017 · 2 comments

Comments

@iamacup
Copy link
Contributor

iamacup commented Sep 22, 2017

Hi

I can't get JPG files to work and don't understand webpack / the underlying loaders enough to fix it - can you take a look @wellyshen when you have time please?

I have a broken commit here that you can use to replicate it: https://github.com/iamacup/sliips-ui/commit/aae472941ff378526d6ccdf3a156a4ee73247bc6

Note that PNG does seem to work :)

When including a JPG with require into an src value on an img tag, you get the following:

webpack building...
./src/containers/App/assets/dog.jpg
Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
  Referenced from: /Users/tpickard/Desktop/sliips-ui/node_modules/mozjpeg/vendor/cjpeg
  Reason: Incompatible library version: cjpeg requires version 36.0.0 or later, but libpng16.16.dylib provides version 35.0.0

    at Promise.all.then.arr (/Users/tpickard/Desktop/sliips-ui/node_modules/execa/index.js:231:11)
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7)
 @ ./src/containers/App/index.js 39:40-67
 @ ./src/client.js
 @ multi babel-polyfill react-hot-loader/patch webpack-hot-middleware/client?reload=true ./src/client.js
@wellyshen
Copy link
Owner

wellyshen commented Sep 22, 2017

@iamacup I tried and I found only the .jpg file broke. And I try this way. It's works for me.

@iamacup
Copy link
Contributor Author

iamacup commented Sep 22, 2017

ahh its an environment issue not an issue with the project - my apologies and thanks :)

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

No branches or pull requests

2 participants