Astro Info
For my actual repo:
Astro v6.3.3
Node v24.15.0
System macOS (arm64)
Package Manager npm
Output server
Adapter @astrojs/node
Integrations @astrojs/react
@astrojs/mdx
@astrojs/sitemap
@storyblok/astro
optimizeRoutes
decodeClassNames
For the minimal reproduction
Astro v6.3.3
Node v22.22.0
System Linux (x64)
Package Manager unknown
Output static
Adapter none
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
On an Astro + Storyblok monorepo with shared components in a sibling folder:
sites/
common/ ← shared .astro components live here
layouts/
Blog.astro
dallas/ ← one of several Astro sites
src/
pages/
astro.config.mjs
nevada/
...
When I updated to Astro6, changes to files in the common/ folder (like sites/common/layouts/Blog.astro) are only shown in the browser if I kill and restart the server (this was not an issue in Astro4 or Astro5).
I tried a few things including writing a custom integration to manually invalidate the module graph and logging confirms invalidation is walking the full importer chain:
invalidating /@fs/.../sites/common/layouts/Blog.astro
invalidating virtual:import-storyblok-components
invalidating /src/styles/tailwind.css
The target module shows invalidationState: 'HARD_INVALIDATED' and transformResult: null in both client and ssr environments. But the page still shows stale content after browser reload.
I created a VERY basic reproduction of the issue on stackblitz , to get it to work
- Run
npm install && npm run dev -w dallas -- --host
- The browser loads and shows "test [...all].astro test blog"
- Update
sites/common/layouts/Blog.astro
- Refresh the browser
- The update doesn't show up
- Kill the server & restart it
- Now the update does show up
What's the expected result?
Saving a change in a common file, like sites/common/layouts/Blog.astro, then refreshing the browser should show the updated content in the common file.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ah7hn2d7?file=sites%2Fcommon%2Flayouts%2FBlog.astro
Participation
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
On an Astro + Storyblok monorepo with shared components in a sibling folder:
When I updated to Astro6, changes to files in the
common/folder (likesites/common/layouts/Blog.astro) are only shown in the browser if I kill and restart the server (this was not an issue in Astro4 or Astro5).I tried a few things including writing a custom integration to manually invalidate the module graph and logging confirms invalidation is walking the full importer chain:
The target module shows invalidationState: 'HARD_INVALIDATED' and transformResult: null in both client and ssr environments. But the page still shows stale content after browser reload.
I created a VERY basic reproduction of the issue on stackblitz , to get it to work
npm install && npm run dev -w dallas -- --hostsites/common/layouts/Blog.astroWhat's the expected result?
Saving a change in a common file, like
sites/common/layouts/Blog.astro, then refreshing the browser should show the updated content in the common file.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ah7hn2d7?file=sites%2Fcommon%2Flayouts%2FBlog.astro
Participation