Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

ButtonGroup does not work with HMR in the latest @sveltejs/vite-plugin-svelte #269

@gthomas3

Description

@gthomas3

I understand this will not get fixed, I'm simply logging it for posterity.

ButtonGroup references ItemGroup which contains a <script context="module"> to export the shared Context.

The current version of @sveltejs/vite-plugin-svelte (1.0.0-next.35) does not support context module blocks during HMR, and consequently the ButtonGroup causes the app to throw an error, and lead to unexpected behaviour.

This has been added to the vite-plugin-svelte 1.0.0 milestone, but until then the ButtonGroup component is not available in the context of HMR.

sveltejs/vite-plugin-svelte#134

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions