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
OrJDev
OrJDev2y ago
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
Razboy20
Razboy202y ago
Thanks! I've been pulling my hair out for a few hours over this xD
OrJDev
OrJDev2y ago
New versions of solid auth use the global crypto api Instead of uuid Would that work for u?
Razboy20
Razboy202y ago
Do you know why uuid is breaking?
OrJDev
OrJDev2y ago
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