Next.js Discord

Discord Forum

Learn Next.js: Handling Errors & not-found.tsx

Satin Angora posted this in #help-forum
Open in Discord
Satin AngoraOP
Hi there, I've gone through the tutorials up to this point and I'm a bit stumped with not-found.tsx. I'm unable to trigger the use of not-found.tsx, even though I think I've followed the tutorial carefully. I'm sure I'm overlooking something, but when I attempt to GET an invoice GUID that doesn't exist, I'm getting the standard error.tsx page. Code is [here]( and the section I'm having an issue with is [here]( Any help would be appreciated!

2 Replies

Satin AngoraOP
Well, chalk this up to old age and high resolution. 😅 Had two hyphens in the file name. Rename immediately fixed the issue.
LPT: Take a walk and drink some water. The answers will always flow afterwards.