-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Exits with errors if no <Image /> is present. #195
Comments
@spudunk Surely that should work fine. |
I started a fresh NextJS project with TypeScript enabled and am unable to reproduce the issue. Pretty long and ugly so pasting here: error.txt Since I'm unable to reproduce it in new projects, feel free to disregard if you don't have time. I'd love to jump in and help improve but I'm afraid my skills aren't quite there yet. |
@spudunk |
That's weird. I've created a branch with an appended error.txt file. I ran it again after deleting the API folder and have the same issue. I just commented out the components in index.js to disable all the images and reproduce the error. Also, before deleting the API folder I had successful builds when some Images were used. |
I see. Thanks for providing the repository. |
While working on another project, a new boilerplate, I didn't have the issue initially, but after adding a few components I got the error again. I'm probably doing something dumb but I'd really appreciate your feedback. |
The cause of the error was found. Until then, please use
|
There was nothing wrong with your code, sir! |
## [1.6.2](v1.6.1...v1.6.2) (2022-08-27) ### Bug Fixes * 🐛 Processing when the image component is not used ([a3dd7b3](a3dd7b3)), closes [#195](#195)
🎉 This issue is included in version v1.6.2. |
Describe the bug
A clear and concise description of what the bug is.
next-export-optimize-images fails if no is present
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should not break build process but successfully optimize 0 / 0 assets
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: