Skip to content
This repository has been 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

Open
gthomas3 opened this issue Jan 27, 2022 · 0 comments

Comments

@gthomas3
Copy link

gthomas3 commented Jan 27, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant