Next.js Discord

Discord Forum

not-found having issues

Unanswered
Russian Spaniel posted this in #help-forum
Open in Discord
Russian SpanielOP
Made a temp work around but after upgrading from 14.1.4 to 14.2.3, my not-found.tsx started causing problems during the build. I later discovered the server looks for _not-found.tsx and then will stop erroring or doing erratic things during build or after I satisfy it with the same exact thing. Thinking okay, this is great, I removed not-found.tsx and then it is still satisfied (error wise) but no longer renders the custom error page, but if I provide both the problem disappears.


seeing something like
> Export encountered errors on following paths:
        /_not-found/page: /_not-found

5 Replies

Russian SpanielOP
follow up, no trick i did worked. reverted back to 14.1.4 where it was last working for me
Russian SpanielOP
bump
Russian SpanielOP
bump
Very weird.

Just a normal not-found.tsx should suffice inside the app directory.
I really doubt clearing out .next or node_modules would do much but try it out.