Skip to content

Astro bug - docs not reloading static assets when changed (update to Astro 6.3.7) #42436

@coliff

Description

@coliff

I've encountered an annoying bug with Astro/Bootstrap docs when running npm run start or npm run docs-serve... it does not reload static assets when changed. The page would flash (as if reloading) but the changes would not show (even when force refreshed). It's really annoying when working on docs as you need to constantly stop and start the server to see changes you've made.

I made a temporary fix for myself locally by editing the examples template, but when researching this issue more I discovered that this issue (HMR broken for dynamic imports) was reported last month (withastro/astro#16522) and a fix was recently merged and is included in the latest release! I've tested this locally and it does indeed fix the issue.

Please update to Astro 6.3.7 for this.
https://github.com/withastro/astro/releases

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Inbox

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions