9 months ago
Error occurred prerendering page "/checkout". Read more: https://nextjs.org/docs/messages/prerender-error
9 46.90
9 46.90 ReferenceError: File is not defined
9 46.90 at 5314 (/app/.next/server/app/(client)/checkout/page.js:1:3822)
9 46.90 at Object.t as require
9 46.90 at require (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:18669)
9 46.90 at I (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:94362)
9 46.90 at C (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:92913)
9 46.90 at rR (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:33974)
9 46.90 at nN (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:62304)
9 46.90 at nB (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:67538)
9 46.90 at nD (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:66680)
9 46.90 at nN (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:64853)
9 46.90 ✓ Generating static pages (14/14)
9 46.97
9 46.97 > Export encountered errors on following paths:
9 46.97 /(client)/checkout/page: /checkout
9 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
[builder 5/5] RUN npm run build:
46.90 at C (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:92913)
46.90 at rR (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:33974)
46.90 at nN (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:62304)
46.90 at nB (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:67538)
46.90 at nD (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:66680)
46.90 at nN (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:64853)
46.90 ✓ Generating static pages (14/14)
46.97
46.97 > Export encountered errors on following paths:
46.97 /(client)/checkout/page: /checkout
Dockerfile:6
4 | COPY . .
5 | RUN npm install
6 | >>> RUN npm run build
7 |
8 | # Stage 2: Production
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
ⓘ Deployment information is only viewable by project members and Railway employees.
0 Replies