adrianhajdin / social_media_app

Build a modern social app with a stunning UI with a native mobile feel, a special tech stack, an infinite scroll feature, and amazing performance using React JS, Appwrite, TypeScript, and more.
https://jsmastery.pro
1.26k stars 381 forks source link

Vercel Deployment Error #39

Open GTierra2000 opened 9 months ago

GTierra2000 commented 9 months ago

i've been trying to work this out but no luck. Any advice is appreciated. This is the error vercel gives me when deployment fails: [18:07:31.024] Running build in Washington, D.C., USA (East) – iad1 [18:07:31.144] Cloning github.com/GTierra2000/snapgram (Branch: main, Commit: 27be4f6) [18:07:31.154] Skipping build cache, deployment was triggered without cache. [18:07:31.507] Cloning completed: 362.856ms [18:07:31.770] Running "vercel build" [18:07:34.857] Vercel CLI 33.2.0 [18:07:35.690] Installing dependencies... [18:07:48.636] npm ERR! code 1 [18:07:48.637] npm ERR! path /vercel/path0/node_modules/vite/node_modules/esbuild [18:07:48.638] npm ERR! command failed [18:07:48.638] npm ERR! command sh -c node install.js [18:07:48.638] npm ERR! node: /lib64/libm.so.6: version GLIBC_2.27' not found (required by node) [18:07:48.638] npm ERR! node: /lib64/libc.so.6: versionGLIBC_2.27' not found (required by node) [18:07:48.639] npm ERR! node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node) [18:07:48.640] [18:07:48.640] npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2024-02-03T23_07_36_083Z-debug-0.log [18:07:48.661] Error: Command "npm install" exited with 1 [18:07:48.853]

anantiikenna commented 4 months ago

I use netlify in my case but first try

npm run build

in your VS Code Terminal. If it does not complete the build and show errors, then the problem is from your code not vercel .