Error: Unable to preload CSS
when using import.meta.glob
#8329
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: styling
Related to styles (scope)
Astro info
What browser are you using?
Chrome
Describe the Bug
There is supposed to be a rendered image in that box.
For some reason, vite attains references to css chunks and tries to manually load them using javascript. Some of these stylesheets were inlined and removed from the bundle. The css loads as expected but javascript code added by vite throws, which prevents user code from executing.
Editing the vite code to not throw is sufficient to prevent this, but hopefully there's a better angle.
What's the expected result?
Link to Minimal Reproducible Example
https://github.com/threlte/threlte/tree/1dfc901/apps/docs
Participation
The text was updated successfully, but these errors were encountered: