Closed dvlden closed 1 year ago
@dvlden it seems adding "web-file-polyfill": "^1.0.4"
as dev dependency will fix it: here a forked version https://stackblitz.com/edit/vitejs-vite-pfcvdh?file=package.json
Nice find. I have installed it in my project, and the issue is also gone.
Describe the bug
Using VeeValidate's
useForm()
– throws a reference error while rendering pages.I tested with
npm
andpnpm
– it's the same error. Narrowed it down from all the Vite dependencies to Vite SSG and it's a problem with it alone, as seen in the repro.Run
npm run export
and you'll see the reference error in the console.Reproduction
https://stackblitz.com/edit/vitejs-vite-dkdkrm
System Info
Used Package Manager
pnpm
Validations