Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMR fails if a component has a style tag #12554

Closed
ottomated opened this issue Jul 22, 2024 · 1 comment
Closed

HMR fails if a component has a style tag #12554

ottomated opened this issue Jul 22, 2024 · 1 comment
Labels
Milestone

Comments

@ottomated
Copy link
Contributor

ottomated commented Jul 22, 2024

Describe the bug

With this simple setup, HMR fails from next.179 to next.195:

<!-- app.svelte -->
<script>
  import Component from "./Component.svelte";
</script>

<Component />
<!-- Component.svelte -->
<div>Hello World</div>

<style></style>

Reproduction

Repo

  • Run dev server
  • Change "Hello World" in Component.svelte to "Hello World2"
  • The div disappears

Logs

No logs

System Info

System:
    OS: Linux 6.9 Fedora Linux 40 (Forty)
    CPU: (24) x64 AMD Ryzen 9 7900 12-Core Processor
    Memory: 19.03 GB / 30.49 GB
    Container: Yes
    Shell: 3.7.0 - /bin/fish
  Binaries:
    Node: 22.5.0 - ~/.volta/tools/image/node/22.5.0/bin/node
    Yarn: 4.1.1 - ~/.volta/tools/image/yarn/4.1.1/bin/yarn
    npm: 10.8.2 - ~/.volta/tools/image/node/22.5.0/bin/npm
    pnpm: 9.4.0 - ~/.volta/bin/pnpm
    bun: 1.1.19 - ~/.bun/bin/bun
  Browsers:
    Chrome: 126.0.6478.126
  npmPackages:
    svelte: ^5.0.0-next.1 => 5.0.0-next.195

Severity

blocking an upgrade

@trueadm trueadm added the bug label Jul 23, 2024
@trueadm trueadm added this to the 5.0 milestone Jul 23, 2024
@dummdidumm
Copy link
Member

Closing as duplicate of #12417, which was fixed

@dummdidumm dummdidumm closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants