#Vite v4 breaking solid-auth

8 messages · Page 1 of 1 (latest)

tropic jetty
#

Updating vite to 4.0.0 is causing problems where "uuid" is failing to load for some reason. I have no clue why, and was wondering whether anyone here may have any ideas. To replicate, I used create-jd-app with solid-auth, then updated packages. When attempting to login, this error is produced: Error: Cannot read properties of undefined (reading 'v4')-coming from attempting to import { v4 } from "uuid". Vite 3 does not cause this issue.

merry fossil
#

Oh i should really update create jd app to vite 4, not sure why exactly it happens but will try it myself and will let you know

tropic jetty
#

Thanks! I've been pulling my hair out for a few hours over this xD

merry fossil
#

Instead of uuid

#

Would that work for u?

tropic jetty
#

Do you know why uuid is breaking?

merry fossil
#

No I haven’t looked into vite4 yet, we just removed the uuid package because cloudfare doesn’t support it