Skip to content

Error on Build  #3

Description

@AweSomeK101

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: /`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions