adrianhajdin / project_nextjs13_flexibble

https://jsmastery.pro
649 stars 139 forks source link

Deployment Error on Vercel #43

Open PsionicGeek opened 11 months ago

PsionicGeek commented 11 months ago

Receiving Error while Deploying to vercel

[21:57:31.334] Running build in Washington, D.C., USA (East) – iad1 (Hive) [21:57:31.435] Cloning github.com/PsionicGeek/grapfbase_flexible (Branch: main, Commit: f294d77) [21:57:31.752] Skipping build cache, deployment was triggered without cache. [21:57:32.009] Cloning completed: 573.454ms [21:57:32.256] Running "vercel build" [21:57:32.714] Vercel CLI 32.4.1 [21:57:33.155] Installing dependencies... [21:57:42.784] [21:57:42.784] added 165 packages in 9s [21:57:42.785] [21:57:42.785] 27 packages are looking for funding [21:57:42.785] run npm fund for details [21:57:42.803] Detected Next.js version: 13.5.6 [21:57:42.805] Detected package-lock.json generated by npm 7+ [21:57:42.806] Running "npm run build" [21:57:43.759] [21:57:43.759] > nextjs13_flexible@0.1.0 build [21:57:43.759] > next build [21:57:43.759] [21:57:44.372] Attention: Next.js now collects completely anonymous telemetry regarding usage. [21:57:44.372] This information is used to shape Next.js' roadmap and prioritize features. [21:57:44.373] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: [21:57:44.373] https://nextjs.org/telemetry [21:57:44.373] [21:57:44.462] Creating an optimized production build ... [21:57:54.150] ⚠ Compiled with warnings [21:57:54.150] [21:57:54.151] ./node_modules/node-fetch/lib/index.js [21:57:54.151] Module not found: Can't resolve 'encoding' in '/vercel/path0/node_modules/node-fetch/lib' [21:57:54.151] [21:57:54.151] Import trace for requested module: [21:57:54.151] ./node_modules/node-fetch/lib/index.js [21:57:54.151] ./node_modules/cross-fetch/dist/node-ponyfill.js [21:57:54.151] ./node_modules/graphql-request/build/esm/index.js [21:57:54.151] ./lib/actions.ts [21:57:54.151] ./components/ProjectForm.tsx [21:57:54.151] [21:57:54.152] Linting and checking validity of types ... [21:57:58.197] Failed to compile. [21:57:58.197] [21:57:58.197] ./components/AuthProvider.tsx:27:20 [21:57:58.198] Type error: Argument of type 'Record<LiteralUnion<BuiltInProviderType, string>, ClientSafeProvider> | null' is not assignable to parameter of type 'SetStateAction<Providers | null>'. [21:57:58.198] Type 'Record<LiteralUnion<BuiltInProviderType, string>, ClientSafeProvider>' is not assignable to type 'SetStateAction<Providers | null>'. [21:57:58.198] Type 'Record<LiteralUnion<BuiltInProviderType, string>, ClientSafeProvider>' is not assignable to type 'Providers'. [21:57:58.198] 'string & Record<never, never>' and 'string' index signatures are incompatible. [21:57:58.198] Property 'signInUrl' is missing in type 'ClientSafeProvider' but required in type 'Provider'. [21:57:58.198] [21:57:58.198]   25 |  const fetchProviders = async () => { [21:57:58.198]   26 |  const res = await getProviders(); [21:57:58.198] > 27 |  setProviders(res); [21:57:58.198]   |  ^ [21:57:58.198]   28 |  } [21:57:58.199]   29 |  fetchProviders(); [21:57:58.199]   30 |  [21:57:58.279] Error: Command "npm run build" exited with 1

KrishnaDabhi commented 9 months ago

please solve my error

PsionicGeek commented 9 months ago

@KrishnaDabhi please share the details. I have solved at that time

JIc-it commented 8 months ago

[12:50:30.877] Running build in Washington, D.C., USA (East) – iad1 [12:50:31.365] Cloning github.com/JIc-it/SEA_ARABIA_VENDOR_FRONDEND (Branch: main, Commit: 57bfddd) [12:50:31.692] Previous build cache not available [12:50:32.345] Cloning completed: 979.187ms [12:50:32.697] Running "vercel build" [12:50:33.178] Vercel CLI 33.1.0 [12:50:33.921] Installing dependencies... [12:50:42.830] npm notice [12:50:42.830] npm notice New major version of npm available! 9.8.1 -> 10.3.0 [12:50:42.830] npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.3.0 [12:50:42.830] npm notice Run npm install -g npm@10.3.0 to update! [12:50:42.831] npm notice [12:50:42.831] npm ERR! code ERESOLVE [12:50:42.835] npm ERR! ERESOLVE could not resolve [12:50:42.836] npm ERR! [12:50:42.836] npm ERR! While resolving: react-step-progress@1.0.3 [12:50:42.836] npm ERR! Found: react@18.2.0 [12:50:42.836] npm ERR! node_modules/react [12:50:42.836] npm ERR! react@"^18.2.0" from the root project [12:50:42.836] npm ERR! peer react@">=16.8.0" from @emotion/react@11.11.3 [12:50:42.836] npm ERR! node_modules/@emotion/react [12:50:42.836] npm ERR! peer @emotion/react@"^11.0.0-rc.0" from @emotion/styled@11.11.0 [12:50:42.836] npm ERR! node_modules/@emotion/styled [12:50:42.836] npm ERR! @emotion/styled@"^11.11.0" from the root project [12:50:42.836] npm ERR! 4 more (@mui/material, @mui/styled-engine, @mui/system, @mui/x-date-pickers) [12:50:42.836] npm ERR! peerOptional @emotion/react@"^11.5.0" from @mui/material@5.15.4 [12:50:42.836] npm ERR! node_modules/@mui/material [12:50:42.837] npm ERR! @mui/material@"^5.14.16" from the root project [12:50:42.837] npm ERR! 2 more (@mui/icons-material, @mui/x-date-pickers) [12:50:42.837] npm ERR! 4 more (@mui/styled-engine, @mui/system, @mui/x-date-pickers, react-select) [12:50:42.837] npm ERR! 59 more (@emotion/styled, ...) [12:50:42.837] npm ERR! [12:50:42.837] npm ERR! Could not resolve dependency: [12:50:42.837] npm ERR! peer react@"^16.0.0" from react-step-progress@1.0.3 [12:50:42.837] npm ERR! node_modules/react-step-progress [12:50:42.837] npm ERR! react-step-progress@"^1.0.3" from the root project [12:50:42.837] npm ERR! [12:50:42.837] npm ERR! Conflicting peer dependency: react@16.14.0 [12:50:42.837] npm ERR! node_modules/react [12:50:42.837] npm ERR! peer react@"^16.0.0" from react-step-progress@1.0.3 [12:50:42.837] npm ERR! node_modules/react-step-progress [12:50:42.837] npm ERR! react-step-progress@"^1.0.3" from the root project [12:50:42.837] npm ERR! [12:50:42.837] npm ERR! Fix the upstream dependency conflict, or retry [12:50:42.837] npm ERR! this command with --force or --legacy-peer-deps [12:50:42.838] npm ERR! to accept an incorrect (and potentially broken) dependency resolution. [12:50:42.838] npm ERR! [12:50:42.838] npm ERR! [12:50:42.838] npm ERR! For a full report see: [12:50:42.838] npm ERR! /vercel/.npm/_logs/2024-01-16T07_20_34_275Z-eresolve-report.txt [12:50:42.838] [12:50:42.838] npm ERR! A complete log of this run can be found in: /vercel/.npm/_logs/2024-01-16T07_20_34_275Z-debug-0.log [12:50:42.860] Error: Command "npm install" exited with 1 [12:50:43.237]

JIc-it commented 8 months ago

Please solve my error.

PsionicGeek commented 8 months ago

@JIc-it I think there is issue with the node version kindly update your node to latest version and solve all the issues in the local after that deploy it again