Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error when deploying in vercel #246

Open
pranesh-sekar opened this issue Feb 24, 2024 · 0 comments
Open

Build error when deploying in vercel #246

pranesh-sekar opened this issue Feb 24, 2024 · 0 comments

Comments

@pranesh-sekar
Copy link

Describe the bug

Hi guys,

I have been using vercel to deploy my site. I always get this error (Please check the logs below) and the build stops. It seems to be coming from svelte-i18n package. I use Bun.js as well as the js runtime. Not sure if that is the problem.

Logs

[18:33:04.512] Running build in Washington, D.C., USA (East) – iad1
[18:33:04.637] Cloning github.com/.....
[18:33:05.142] Cloning completed: 504.886ms
[18:33:06.457] Restored build cache
[18:33:06.549] Running "vercel build"
[18:33:07.032] Vercel CLI 33.5.2
[18:33:07.676] Installing dependencies...
[18:33:07.718] [0.12ms] ".env"
[18:33:07.724] bun install v1.0.28 (70563847)
[18:33:07.731] Resolving dependencies
[18:33:07.900] Resolved, downloaded and extracted [2]
[18:33:07.903] Saved lockfile
[18:33:08.164] /vercel/path0/node_modules/svelte-i18n/node_modules/esbuild/install.js:133
[18:33:08.165] throw new Error(Expected ${JSON.stringify(versionFromPackageJSON)} but got ${JSON.stringify(stdout)});
[18:33:08.165] ^
[18:33:08.166]
[18:33:08.166] Error: Expected "0.19.10" but got "0.19.12"
[18:33:08.166] at validateBinaryVersion (/vercel/path0/node_modules/svelte-i18n/node_modules/esbuild/install.js:133:11)
[18:33:08.167] at /vercel/path0/node_modules/svelte-i18n/node_modules/esbuild/install.js:286:5
[18:33:08.167]
[18:33:08.167] Node.js v18.18.2
[18:33:08.167]
[18:33:08.167] error: postinstall script from "esbuild" exited with 1
[18:33:08.171] Error: Command "bun install" exited with 1
[18:33:08.708]

The packages which I use in my site:

"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@skeletonlabs/skeleton": "^2.6.1",
"@skeletonlabs/tw-plugin": "^0.3.0",
"@sveltejs/adapter-auto": "^3.1.0",
"@sveltejs/kit": "^2.0.6",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/js-cookie": "^3.0.6",
"@vercel/analytics": "^1.2.2",
"autoprefixer": "^10.4.16",
"js-cookie": "^3.0.5",
"postcss": "^8.4.32",
"svelte": "^4.2.8",
"svelte-i18n": "^4.0.0",
"tailwindcss": "^3.4.0",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vite-plugin-tailwind-purgecss": "^0.2.0"
},

To Reproduce

Create a new svelte project, use the above packages espically svelte-i18n, and try to deploy in vercel

Expected behavior

Success Build and Deployment

Information about your project:

  • Firefox v123
  • MacOS Sonama
  • svelte-i18n version 4.0.0
@pranesh-sekar pranesh-sekar changed the title Build Error when deploying in vercel Build error when deploying in vercel Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant