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
Astro v4.7.0
Node v20.10.0
System Windows (x64)
Package Manager pnpm
Output static
Adapter none
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using <style> in an .astro file, I get the following error message when building.
Sometimes I can build without error, but the css is not loaded in the generated html file.
09:40:32 [ERROR] [vite] x Build failed in 1.05s
[astro:build] Could not load C:/Users/path/to/project/src/pages/index.astro?astro&type=style&index=0&lang.css (imported by src/pages/index.astro): No cached compile metadata found for"C:/Users/path/to/project/src/pages/index.astro?astro&type=style&index=0&lang.css". The main Astro module "C:/Users/path/to/project/src/pages/index.astro" should have compiled and filled the metadata first, before its virtual modules can be requested.
Stack trace:
at Object.load (file:///C:/Users/path/to/project/node_modules/.pnpm/astro@4.7.0_typescript@5.4.5/node_modules/astro/dist/vite-plugin-astro/index.js:71:15)
at file:///C:/Users/path/to/project/node_modules/.pnpm/rollup@4.17.1/node_modules/rollup/dist/es/shared/node-entry.js:19775:40
at async file:///C:/Users/path/to/project/node_modules/.pnpm/rollup@4.17.1/node_modules/roll ELIFECYCLE Command failed with exit code 1.
This happens even when I just created a project with default settings.
What's the expected result?
Could be due to Windows environment rather than Astro, but could not be identified.
Do you have any more details that you can share about your environment? I tried reproducing this on Windows, but I am not getting any errors and I can see the styles in the output of the build.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using <style> in an .astro file, I get the following error message when building.
Sometimes I can build without error, but the css is not loaded in the generated html file.
This happens even when I just created a project with default settings.
What's the expected result?
Could be due to Windows environment rather than Astro, but could not be identified.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-wnqguo?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: