Next.js Discord

Discord Forum

Problem with Build, dev works without problems

Unanswered
Pine Bunting posted this in #help-forum
Open in Discord
Pine BuntingOP
I have the following problem. I can't build my project but it starts without problem in dev mode
I hope someone can help me and tell me what I am doing wrong. I still have problems with NextJS 15

Code: https://hastebin.skyra.pw/tarepoxuke.ts
Error: https://hastebin.skyra.pw/ivexekikig.less

14 Replies

@Pine Bunting I have the following problem. I can't build my project but it starts without problem in dev mode I hope someone can help me and tell me what I am doing wrong. I still have problems with NextJS 15 Code: https://hastebin.skyra.pw/tarepoxuke.ts Error: https://hastebin.skyra.pw/ivexekikig.less
it looks like you are using data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. So add either "use cache" or a Suspense boundary around it and the error is fixed
Pine BuntingOP
Yes, I realize that. but I can't find where.
@Pine Bunting Yes, I realize that. but I can't find where.
it's somewhere inside your route /cp/servers/[id]. So I suggest you add a suspense boundary very high up (that wraps everything) and check if the error is gone
@Pine Bunting solved?
@B33fb0n3 <@283414457193988096> solved?
Pine BuntingOP
Unfortunately not. I gave up and am currently redoing the whole project. Maybe I'll find the error then 🙂 I'll let you know if it works then
Pine BuntingOP
yes
@Pine Bunting yes
perfect, then the error is not in the tree itself. It's more inside your page.tsx (but before the return)
Pine BuntingOP
i have commented out 95% of the file and the error still occurs
Pine BuntingOP
yes, but it doesn't make the error on other pages. But I'll take it out for a test
@Pine Bunting tested it?
Pine BuntingOP
I’m lying flat in bed with the flu. Give me a few more days please
@Pine Bunting I’m lying flat in bed with the flu. Give me a few more days please
This thread will automatically be closed when there is no activity. I will leave this thread for now. Ping me inside this thread, when you want to solve the problem