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
While working on your suggestion to incorporate #132 into #127, I came across this bug. After confirming it happened in main and not part of my own changes, I'm reporting it here.
If you run pnpm dev from the packages\svelte-ux directory and navigate to the SelectField component's webpage, there are a few parts of the page that contain examples that include <Form> usage. When submitting these forms, it now produces a regression in which the following uncaught TypeError is thrown and the UI for said preview example thenceforth freezes until you completely refresh the page to reset things. Not sure when exactly this began happening, but it wasn't an issue a month ago.
Uncaught TypeError: Cannot perform 'IsArray' on a proxy that has been revoked
at clone (<anonymous>:555:19)
at <anonymous>:555:57
at Array.map (<anonymous>)
at clone (<anonymous>:555:48)
at clone (<anonymous>:562:20)
at <anonymous>:555:57
at Array.map (<anonymous>)
at clone (<anonymous>:555:48)
at serializeNode (<anonymous>:656:31)
at Object.remove (<anonymous>:681:15)
Investigating the error, it appears to have something to do with the immer library and the use of its data outside of the scope in which they are valid. I already tried replacing the use of draft in the page's form examples with current instead, but that didn't seem to resolve the issue.
The text was updated successfully, but these errors were encountered:
I just tried to reproduce myself and it appears to work for me (both on master and on my local branch I'm working on).
CleanShot.2023-12-11.at.14.56.47-converted.mp4
Am I doing it wrong to reproduce?
Btw, the last time we bumped immer (10.0.2 => 10.0.3) was ~Oct 13th and the major (9.0.19 => 10.0.2) was ~Sept 13th when Svelte was bumped from 3 => 4 (which is likely when the regression happened, unless it went unnoticed well before that)
Ahhhh, nope, nevermind. Seems that this is being triggered by some sort of Chrome extension I have installed (not sure which one). It worked fine when I ran it in Firefox and Edge.
No worries, and I wasn't going to be surprised if it was an immer bug / regression. I've hit some challenging issues with it (especially with draft scoping). Hoping to remove it with Svelte 5 runes in the future, hopefully.
While working on your suggestion to incorporate #132 into #127, I came across this bug. After confirming it happened in
main
and not part of my own changes, I'm reporting it here.If you run
pnpm dev
from thepackages\svelte-ux
directory and navigate to theSelectField
component's webpage, there are a few parts of the page that contain examples that include<Form>
usage. When submitting these forms, it now produces a regression in which the following uncaught TypeError is thrown and the UI for said preview example thenceforth freezes until you completely refresh the page to reset things. Not sure when exactly this began happening, but it wasn't an issue a month ago.Investigating the error, it appears to have something to do with the
immer
library and the use of its data outside of the scope in which they are valid. I already tried replacing the use ofdraft
in the page's form examples withcurrent
instead, but that didn't seem to resolve the issue.The text was updated successfully, but these errors were encountered: