Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simonsiefke/nextjs-error-bug


https://github.com/simonsiefke/nextjs-error-bug

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# Nextjs error handling bug

## Output

```
next build

- info Creating an optimized production build
- info Compiled successfully
- info Linting and checking validity of types
- info Collecting page data
[= ] - info Generating static pages (1/4)TypeError: someVariable.doesNotExist is not a function
at SomeComponent (/home/simon/.cache/repos/nextjs-error-bug/.next/server/app/page.js:335:18)
at S (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6167:13)
at eb (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6282:21)
at Object.toJSON (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6086:20)
at stringify ()
at pb (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6493:9)
at mb (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6392:29)
at Timeout._onTimeout (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6217:16)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: someVariable.doesNotExist is not a function
at SomeComponent (/home/simon/.cache/repos/nextjs-error-bug/.next/server/app/page.js:335:18)
at S (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6167:13)
at eb (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6282:21)
at Object.toJSON (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6086:20)
at stringify ()
at pb (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6493:9)
at mb (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6392:29)
at Timeout._onTimeout (/home/simon/.cache/repos/nextjs-error-bug/.next/server/chunks/968.js:6217:16)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)
- info Generating static pages (4/4)

> Export encountered errors on following paths:
/page: /
```