Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
See original GitHub issuefull error:
ERROR in ./src/images/bg.jpg
Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
Referenced from: /Users/dulin/workspace/webpack-summer/node_modules/mozjpeg/vendor/cjpeg
Reason: image not found
at Promise.all.then.arr (/Users/dulin/workspace/webpack-summer/node_modules/execa/index.js:170:11)
at process._tickCallback (internal/process/next_tick.js:103:7)
@ ../~/css-loader!./src/style.css 6:100-126
it seems not support jpg
image?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16 ...
I get the following error while loading image :
Read more >Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib
How do I resolve this? dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib [...] Reason: no suitable image found.
Read more >Dyld: Library Not Loaded: /Usr/Local/Opt/Libpng/Lib/Libpng16 ...
Module Build Failed : Error: Dyld: Library Not Loaded: /Usr/Local/Opt/Libpng/Lib/Libpng16.16.Dylib. Mattermost Server. Ensure that log files are being ...
Read more >Module build failed: Error: dyld: Library not loaded: /usr/local ...
Coding example for the question Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib-Reactjs.
Read more >Library not loaded: /opt/local/lib/libpng16.16.dylib) – MacPorts
macOS 10.14 (darwin/18.6.0) arch i386 MacPorts 2.5.4 Xcode 10.2.1 SDK 10.14 MACOSX_DEPLOYMENT_TARGET: 10.14 ---> Building ghostscript Error: Failed to build ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just need update it with
brew
.brew reinstall libpng
To solve the problem I applied the following workaround (that is not optimal, but it is doing the job).
that turned out to be under
/opt/X11/lib/
in my system.Note that before step 2, you may need to create the folders
/usr/local/opt/libpng/lib/
if not present, with: