Vercel Deployment
Unanswered
Erythrina gall wasp posted this in #help-forum
Erythrina gall waspOP
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: react-day-picker@8.10.1
npm error Found: date-fns@4.1.0
npm error node_modules/date-fns
npm error date-fns@"^4.1.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer date-fns@"^2.28.0 || ^3.0.0" from react-day-picker@8.10.1
npm error node_modules/react-day-picker
npm error react-day-picker@"^8.10.1" from the root project
npm error
npm error Conflicting peer dependency: date-fns@3.6.0
npm error node_modules/date-fns
npm error peer date-fns@"^2.28.0 || ^3.0.0" from react-day-picker@8.10.1
npm error node_modules/react-day-picker
npm error react-day-picker@"^8.10.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
5 Replies
Erythrina gall waspOP
Error occurred prerendering page "/affirmations". Read more: https://nextjs.org/docs/messages/prerender-error
FirebaseError: Installations: Missing App configuration value: "projectId" (installations/missing-app-config-values).
at eC (/vercel/path0/.next/server/chunks/498.js:3:441891)
at eE (/vercel/path0/.next/server/chunks/498.js:3:441762)
at i.eR [as instanceFactory] (/vercel/path0/.next/server/chunks/498.js:3:442043)
at a.getOrInitializeService (/vercel/path0/.next/server/chunks/498.js:3:417985)
at a.getImmediate (/vercel/path0/.next/server/chunks/498.js:3:415936)
at i.ek [as instanceFactory] (/vercel/path0/.next/server/chunks/498.js:3:442225)
at a.getOrInitializeService (/vercel/path0/.next/server/chunks/498.js:3:417985)
at a.getImmediate (/vercel/path0/.next/server/chunks/498.js:3:415936)
at i.instanceFactory (/vercel/path0/.next/server/chunks/498.js:3:452063)
at a.getOrInitializeService (/vercel/path0/.next/server/chunks/498.js:3:417985)
Export encountered an error on /affirmations/page: /affirmations, exiting the build.
⨯ Static worker exited with code: 1 and signal: null
Error: Command "npm run build" exited with 1
help
i do have projectId
Erythrina gall waspOP
rror occurred prerendering page "/affirmations". Read more: https://nextjs.org/docs/messages/prerender-error
ReferenceError: window is not defined
at eq (/vercel/path0/.next/server/chunks/498.js:3:445077)
at tl (/vercel/path0/.next/server/chunks/498.js:3:451215)
at i.instanceFactory (/vercel/path0/.next/server/chunks/498.js:3:451984)
at a.getOrInitializeService (/vercel/path0/.next/server/chunks/498.js:3:417985)
at a.initialize (/vercel/path0/.next/server/chunks/498.js:3:417360)
at tc (/vercel/path0/.next/server/chunks/498.js:3:451611)
at tu (/vercel/path0/.next/server/chunks/498.js:3:451432)
at 3926 (/vercel/path0/.next/server/chunks/426.js:1:3777)
at t (/vercel/path0/.next/server/webpack-runtime.js:1:128)
at 1317 (/vercel/path0/.next/server/chunks/426.js:1:794)
Export encountered an error on /affirmations/page: /affirmations, exiting the build.
⨯ Static worker exited with code: 1 and signal: null
Error: Command "npm run build" exited with 1
help plsBrown bear
window is not defined means you are using a library which only works in the browser and can't be prerendered;
https://nextjs.org/docs/messages/react-hydration-error#possible-ways-to-fix-it
render it only on the client with an useEffect/ window is not null check
https://nextjs.org/docs/messages/react-hydration-error#possible-ways-to-fix-it
render it only on the client with an useEffect/ window is not null check