learn.svelte.dev icon indicating copy to clipboard operation
learn.svelte.dev copied to clipboard

handleError - Chrome bug

Open Drotak opened this issue 2 years ago • 3 comments

As you can see in the image below, I'm unable to call the "/the-bad-place" route image

Chrome Version: 119.0.6045.200 - also tried updating to 120.0.6099.71 - but the problem persists

I also tried this with Firefox 120.0.1 and there it works without a problem

Drotak avatar Dec 12 '23 11:12 Drotak

Can reproduce this, the console says

Error: `line` must be greater than 0 (lines start at line 1)
at originalPositionFor$1 (/home/httpslearnsveltedev-xfsn/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:10168:19)

@paoloricciuti didn't you have a similar problem for sveltelab?

dummdidumm avatar Dec 12 '23 12:12 dummdidumm

Can reproduce this, the console says

Error: `line` must be greater than 0 (lines start at line 1)
at originalPositionFor$1 (/home/httpslearnsveltedev-xfsn/node_modules/vite/dist/node/chunks/dep-e8f070e8.js:10168:19)

@paoloricciuti didn't you have a similar problem for sveltelab?

Yes i had and kinda still have...currently i'm patching sveltekit code on instally to add a try/catch around this https://github.com/sveltejs/kit/blob/5faf68e8eeb75177287f574d02536f30a094ac64/packages/kit/src/exports/vite/dev/index.js#L255-L258C3 to at least avoid that the dev server crashes. I sent a report to the webcontainer team because apparently it only happens in a webcontainer

paoloricciuti avatar Dec 12 '23 12:12 paoloricciuti

Also encountered this issue.

I'll skip the tutorial page for now.

jdg2896 avatar Dec 29 '23 06:12 jdg2896