RedditPP Mascot

RedditPP

r/sveltejs • … • u/ZuriPL

[SvelteKit] SvelteKit project build on vercel fails

EDIT: Fixed by deleting npm run prepare script from package.json. Dumb, but it works

I updated my project today to use the vite command instead of svelte-kit command, since it stoppped working. The test server runs fine, building and previewing works too. However, vercel is running \`vite sync\`, which hangs and doesn't allow vercel to build succesfully. Here's the output of \`vite sync\`/\`npm run prepare\`:

​

$ npm run prepare

> [email protected] prepare > vite sync

vite v2.9.14 dev server running at:

> Local: http://localhost:3000/ > Network: use `--host` to expose

ready in 182ms.

(!) Could not auto-determine entry point from rollupOptions or html files and there are noexplicit optimizeDeps.include patterns. Skipping dependency pre-bundling.

— 0