-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Static builds stops at generating static routes
without error when using optimized images
#8547
Comments
<3 |
Maybe a p5, not sure how widely it affects users. |
Confirmed that this is the same issue, I removed all relative image paths in the markdown from |
I'll take a look, thank you for all the reproductions! |
Just a quick note I thought I might have introduced this bug myself in #8475 (released as part of v3.1.0), but this issue is reported based on v3.0.8. |
So investigating this... This line is the line that crashes the process:
Why? Well, I actually don't know. The module it's trying to load typically looks like this: export { renderers } from '../renderers.mjs';
export { onRequest } from '../_empty-middleware.mjs';
const page = () => import('../chunks/pages/index_91945e29.mjs').then(n => n.i);
export { page }; and running the debugger through it, after line 4, the process just ends after going through some Node code, no exceptions or messages. I'll keep investigating, but so far I'm lost. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
In some cases, when using optimized images,
astro build
will stop/fail at thegenerating static route
stage and not throw any errors making production builds appear as if they were successfulCases:
/public
/src/pages
import.meta.glob()
to glob markdown containing inline relative image paths.md
file with inline relative image pathsgetImage()
in.astro
fileAll cases are using v3 optimized images, 5/6 of them are using inline relative image paths in markdown.
Example of broken output:
What's the expected result?
Build should throw an error or continue building
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-threhe?file=src%2Fpages%2Findex.md
Participation
The text was updated successfully, but these errors were encountered: