Today my build started failing intermittently with the following error:
Error: [remix] dest already exists.
at /vercel/path0/node_modules/fs-extra/lib/move/move.js:51:31
at /vercel/path0/node_modules/universalify/index.js:21:38 {
code: 'PLUGIN_ERROR',
plugin: 'remix',
hook: 'writeBundle'
}
There seems to be no pattern to it, sometimes a preview would build correctly and then the deploy to production would fail, sometimes the preview would fail. Retrying the same deploy multiple times does eventually seem to fix it.
I can’t exactly say how to reproduce as It’s not a consistent error.
I’m running Remix the Vercel Remix package, supabase and Vite. The project settings are quite vanilla and default.
Anybody seen this before?
Thank you!
Si