-
Notifications
You must be signed in to change notification settings - Fork 51
Description
Ran in the following little error on building the app. Please help
`$ npm run build
next-ticket-app@0.1.0 build
next build
✓ Creating an optimized production build
✓ Compiled successfully
✓ Linting and checking validity of types
✓ Collecting page data
Generating static pages (1/6) [== ]
Failed To Get Tickets TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11457:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: connect ECONNREFUSED ::1:3000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 3000
}
}
TypeError: Cannot destructure property 'tickets' of '(intermediate value)' as it is undefined.
at Dashboard (D:\codd\next-ticket-app.next\server\app\page.js:1:5377)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot destructure property 'tickets' of '(intermediate value)' as it is undefined.
at Dashboard (D:\codd\next-ticket-app.next\server\app\page.js:1:5377)
✓ Generating static pages (6/6)
Export encountered errors on following paths:
/page: /`