You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The migrate function throws an error with the message Error: Cannot overwrite a zero-length range – use appendLeft or prependRight instead. It works fine if there's a semicolon at the end though.
Stack when throws:
Error: Cannot overwrite a zero-length range – use appendLeft or prependRight instead
at NA.update (compiler/index.js@5.0.0-next.136:1:633353)
at LabeledStatement (compiler/index.js@5.0.0-next.136:1:678165)
at next (compiler/index.js@5.0.0-next.136:1:900)
at _ (compiler/index.js@5.0.0-next.136:1:675892)
at e (compiler/index.js@5.0.0-next.136:1:871)
at eval (compiler/index.js@5.0.0-next.136:1:591)
at Array.forEach (<anonymous>)
at next (compiler/index.js@5.0.0-next.136:1:540)
at i (compiler/index.js@5.0.0-next.136:1:309)
at next (compiler/index.js@5.0.0-next.136:1:900)
Describe the bug
The migrate function throws an error with the message
Error: Cannot overwrite a zero-length range – use appendLeft or prependRight instead
. It works fine if there's a semicolon at the end though.Stack when throws:
Reproduction
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACk2OzWrDMAzHX0WIHtY10K5HzwmUPUa9w-ooYObIJpYHw_jdh5PS9aif_l8FJ-cpoboW5K-ZUOElRuxQfmM70g95IewwhbzYRnSyi4syGDbiScCGzAI9nAw3NGW24gKDY7vQTCwveyjtY2STHnp4e2-gbo6dgjHkm6fx4x616V7hbFgf_-tY37JIYAisrHf2uy-PkrruWWlSUNaE2uybZTCs4_DIVVCeK6s-xgE7nMPoJkcjKlky1c_6B3LUWlgeAQAA
Logs
index-ZdIW0gts.js:80 Console was cleared index-ZdIW0gts.js:80 running Svelte compiler version 5.0.0-next.136 index.js@5.0.0-next.136:1 Error while migrating Svelte code e.migrate @ index.js@5.0.0-next.136:1 d @ index-ijMT1Sp-.js:5 (anonymous) @ index-ijMT1Sp-.js:2
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: