Can't build SolidStart after updating packages

After updating packages, I can't build project both locally and on vercel. I can't find anything relevant to this on google and on this Discord. Do you guys have any idea what could've caused this?
[vite:define] Transform failed with 1 error:
error: Invalid define value (must be an entity name or valid JSON syntax): (() => {})
file: /vercel/path0/node_modules/solid-start/entry-client/mount.tsx
[vite:define] Transform failed with 1 error:
error: Invalid define value (must be an entity name or valid JSON syntax): (() => {})
file: /vercel/path0/node_modules/solid-start/entry-client/mount.tsx
No description
3 Replies
Birk Skyum
Birk Skyum14mo ago
do you have a repro?
Vexcited
Vexcited14mo ago
downgrade to vite@4
aquarazorda
aquarazordaOP14mo ago
hmm, I've tried it yesterday, but didn't really check the error message. Turns out, vite 5 was pointing to the wrong direction. With vite 4, I got the correct error message and was able to fix it. Thanks
Want results from more Discord servers?
Add your server