Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Build #3

Open
AweSomeK101 opened this issue Oct 29, 2023 · 0 comments
Open

Error on Build #3

AweSomeK101 opened this issue Oct 29, 2023 · 0 comments

Comments

@AweSomeK101
Copy link

Ran in the following little error on building the app. Please help
`$ npm run build

[email protected] 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: /`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant