Next.js Discord

Discord Forum

Looking for reason of error.

Unanswered
# Soul Star # posted this in #help-forum
Open in Discord
I'm studying Next.js 15 online tutorial.
But I made mistake in Chapter 8 as follow .

10 Replies

@# Soul Star # Instead of throwing new error at line 30, can you please write this
throw error

and share the ss again.

or share line 29 output
@Tarun Sahnan <@1264648447785566281> Instead of throwing new error at line 30, can you please write this throw error and share the ss again. or share line 29 output
See terminal logs, i think error will be visible there.
I am a beginner.
so, I can't find reason of issue
@# Soul Star # so, I can't find reason of issue
Sun bear
Client side errors are logged in the browser console

Server side errors are logged in eg vs code where you ran npm run dev
the original error was masked as you threw another error "Failed to fetch revenue data". here you're logging the original error, which should show up in the terminal where you ran npm run dev.
We are ready to help, but the issue is unclear from this log alone. The main error is being recorded in the terminal where you ran npm run dev or npm run start. So, please share that log.
@# Soul Star # can you help me?
American Fuzzy Lop
I can