Vite v4 breaking solid-auth
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.5 Replies
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
Thanks! I've been pulling my hair out for a few hours over this xD
New versions of solid auth use the global crypto api
Instead of uuid
Would that work for u?
Do you know why uuid is breaking?
No I haven’t looked into vite4 yet, we just removed the uuid package because cloudfare doesn’t support it
But it should solve your issue too ofc