Comments (4)
Hi @Jesus82.
Thank you very much for the compliment. It's good to hear that this module is proving useful!
Do you know if this is still an issue? I haven't tried the test case where source images may be missing.
When I get time I'll check in and see if I can duplicate this.
Thanks,
Barry
from nuxt-image-loader-module.
Hi Barry,
I can confirm I have this problem also if I remove some of the source files – say if they are declared in a JSON file somewhere and used by the app.
I get this warning for every size of the first missing image, the the process stops with a ✖ Nuxt Fatal Error
:
ERROR Command failed: gm convert: Unable to open file (/Users/tempura/Dropbox/websites/the-entente-website/entente-nuxt-ssr/assets/images/batch-1/colophon-foundry-montefiore-type-specimen-2.jpg) [No such file or directory]. 09:27:10
at ChildProcess.onExit (node_modules/gm/lib/command.js:301:17)
at ChildProcess.emit (events.js:188:13)
at ChildProcess.EventEmitter.emit (domain.js:441:20)
at maybeClose (internal/child_process.js:978:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
This would be very helpful!
Best,
Simon
from nuxt-image-loader-module.
Got the same issue! Subscribing
from nuxt-image-loader-module.
Please try a fix I just added to a new release 1.4.1 and let me know generating images works for you.
I added a check to see whether the source file exists and if it doesn't it skips generating that particular image and displays a warning at the console for each file that may be missing. E.g. Warning: Source file not found at ./content/cat.jpg. Perhaps you referenced this image somewhere and it has since been removed.
from nuxt-image-loader-module.
Related Issues (20)
- Clear cache strategy to delete generated files when settings changed etc. HOT 3
- `forceGenerateImages` does not seem to be working HOT 5
- Usage with srcset HOT 2
- WebP support HOT 1
- Add option to declare image styles outside the module. HOT 1
- how to point URL to an s3 bucket after generation? HOT 2
- Image compression is very aggressive – is there a way to control? HOT 4
- Cache previously force-generated images?
- Hash image names
- Support of multiple image dirs and sources HOT 4
- forceGenerateImages shows an error when no image matched from glob pattern
- 404 Not found when running with `nuxt` or `npm run dev`
- Issue: I don't see the generated images? HOT 1
- Question: Thumbnail resize options HOT 3
- Feature requests for enhanced nuxt generate options HOT 8
- README updates
- Add unit tests
- Use nuxt's consola for module logging
- Feature Request: change output format HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-image-loader-module.