#Valid Svelte code not parsing after Astro package update I believe

17 messages · Page 1 of 1 (latest)

sage geyser
#

Hi! Basically I just updated from Astro 5.4.3 to 5.5.1 and now I'm getting "Unexpected token
https://svelte.dev/e/js_parse_error" on my valid Svelte code, and it looks like on my whole code. It was perfectly working yesterday and the only thing that changed is me doing bun update, so I believe it comes from it..?

sage geyser
#

I don't know if you use typescript but if you do, try removing it where it complains. Weirdly it complained about it in 3 of my files, and after removing it it works again. The weird thing is that other files do use ts fine

manic pond
#

currently downgrading to astro 5.4.2

sage geyser
#

Didn't work personally, lmk if it does on your side!

manic pond
#

deleting node modules and all resolved my issue

#

could it be cache related?

#

try deleting your node modules folder and reinstalling it

sage geyser
sage geyser
#

Tried to downgrade to 5.4.2 and bun i after deleting node modules folder, same problem

#

bun pm cache rm didn't help either, ah

sage geyser
tepid notch
#

I am facing the same issue

sage geyser
#

And it looks like whenever I od bun i it crashes again, so stick with npm install for now I guess