You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some set of conditions in an Astro project, generated chunk appears to not be included in the bundle, resulting in placeholder not being replaced and in turn the build failing.
[ERROR] [vite] x Build failed in 493ms
[unocss:global:build:bundle] [plugin unocss:global:build:bundle] [unocss] does not found CSS placeholder in the generated chunks
This is likely an internal bug of unocss vite plugin
I've tried narrowing reproduction but don't really understand what exactly the conditions are.
In reproduction there are several ways to work around, but they don't really apply in actual project, and I don't fully understand why the workarounds bring about the changes they do; from what I can tell it seems to be related to vite chunking / code splitting for different pages though.
UnoCSS version
0.59.4
Describe the bug
(already read through #1341, #1402)
In some set of conditions in an Astro project, generated chunk appears to not be included in the bundle, resulting in placeholder not being replaced and in turn the build failing.
I've tried narrowing reproduction but don't really understand what exactly the conditions are.
In reproduction there are several ways to work around, but they don't really apply in actual project, and I don't fully understand why the workarounds bring about the changes they do; from what I can tell it seems to be related to vite chunking / code splitting for different pages though.
Reproduction
https://stackblitz.com/edit/unocss-unocss-bpm7ur?file=README.md&view=editor
System Info
framework: Astro
Validations
The text was updated successfully, but these errors were encountered: