#Prerendering error?

3 messages · Page 1 of 1 (latest)

steep ledge
#

How can I fix this error?

0.656 $ next build
2.288 Attention: Next.js now collects completely anonymous telemetry regarding usage.
2.288 This information is used to shape Next.js' roadmap and prioritize features.
2.288 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
2.288 https://nextjs.org/telemetry
2.288
2.379    ▲ Next.js 15.1.4
2.379
2.405    Creating an optimized production build ...
18.91  ✓ Compiled successfully
18.93    Linting and checking validity of types ...
19.33  ⨯ ESLint: Cannot read config file: /home/bun/app/node_modules/eslint-config-next/core-web-vitals.js Error: parent.require is not a function. (In 'parent.require(filePath)', 'parent.require' is undefined) Referenced from:
22.67    Collecting page data ...
23.50    Generating static pages (0/5) ...
32.93 Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
32.93 TypeError: undefined is not an object (evaluating 'u.toString')
32.93     at <anonymous> (/home/bun/app/.next/server/chunks/638.js:2:10285)
32.93     at <anonymous> (/home/bun/app/.next/server/chunks/638.js:2:9925)
32.93     at <anonymous> (/home/bun/app/.next/server/chunks/638.js:2:23972)
32.93     at <anonymous> (/home/bun/app/.next/server/chunks/638.js:2:9634)
32.93     at u (/home/bun/app/.next/server/chunks/638.js:2:9154)
32.93     at <anonymous> (/home/bun/app/.next/server/app/page.js:1:139056)
32.93     at o (/home/bun/app/.next/server/app/page.js:1:139043)
32.93     at <anonymous> (/home/bun/app/.next/server/app/page.js:1:139507)
32.93     at a (/home/bun/app/.next/server/app/page.js:1:139494)
32.93     at ek (/home/bun/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:84:13368)

Does it have to do with my website using an external API that isnt online right now?

balmy cobaltBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

cloud bone