Astro Info
Astro v6.0.0-beta.3
Vite v7.3.1
Node v24.12.0
System macOS (arm64)
Package Manager npm
Output static
Adapter @astrojs/netlify (v7.0.0-beta.5)
Integrations @astrojs/mdx (v5.0.0-beta.2)
If this issue only occurs in one browser, which browser is a problem?
N/A - build error
Describe the Bug
When an Astro project has both SSR (server-rendered) and prerendered routes that import the same file using the ?raw query parameter, the build fails with:
"default" is not exported by "src/global.css?raw"
The bug only occurs when both SSR and prerendered routes import the same file with ?raw:
- If only prerendered routes use
?raw, it works fine
- If only SSR routes use
?raw, it works fine
This affects any file type with ?raw, not just CSS.
What's the expected result?
Build succeeds. The ?raw import should return the file contents as a string (default export) in both route types.
Link to Minimal Reproducible Example
https://github.com/matthewp/astro-6-beta-missing-styles-1
Participation
Astro Info
If this issue only occurs in one browser, which browser is a problem?
N/A - build error
Describe the Bug
When an Astro project has both SSR (server-rendered) and prerendered routes that import the same file using the
?rawquery parameter, the build fails with:The bug only occurs when both SSR and prerendered routes import the same file with
?raw:?raw, it works fine?raw, it works fineThis affects any file type with
?raw, not just CSS.What's the expected result?
Build succeeds. The
?rawimport should return the file contents as a string (default export) in both route types.Link to Minimal Reproducible Example
https://github.com/matthewp/astro-6-beta-missing-styles-1
Participation