Skip to content

[HMR Broken] File changes are not applied anymore in dynamic imported components #16000

@Eptagone

Description

@Eptagone

Astro Info

Astro                    v6.0.7
Node                     v22.22.0
System                   Linux (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

If you use a dynamic imported component, your changes won't be applied unless you restart the dev server.
This used to work with Astro 5.
The problem is related to #15983

Edit: If you edit the styles, they are actually applied, it was a previous fixed issue #15983. But editing the HTML doesn't apply the changes.

What's the expected result?

Changes to be applied

Link to Minimal Reproducible Example

Upgraded to v6.3.5
https://stackblitz.com/edit/github-vpwgmds8?file=src%2Fcomponents%2FMyComponent.astro

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions