not-found.tsx doesn't work, neither loading.tsx
Answered
Cape May Warbler posted this in #help-forum
Cape May WarblerOP
Title is misleading but I have given file structure which works just fine but for some reason not-found.tsx doesn't work at all (I assume it will only when invoked by
notFound()). With workaround I have right now ([...not-found]) I cannot add loading.tsx which is troublesome because almost all my pages rely on API which makes them load longer and there is no visual cue for the user that new page is loading.Answered by Cape May Warbler
Seems like I will have to get rid of internationalization from loading page and put simple spinner there
4 Replies
Cape May WarblerOP
Ah and before anyone say that I don't have
loading.tsx: I deleted the file because it didn't workPlease make an minimal reproduction repository, you provided information that are not suitable for problem that you had. If you have problem with not-found.tsx please provide screenshots, code and infoation when It was not working (or reproduction)
Cape May WarblerOP
As I went into examples of next-intl:
https://github.com/amannn/next-intl/blob/main/examples/example-app-router/src/app/%5Blocale%5D/not-found.tsx
This is expected, yet still not happy to see it
https://github.com/amannn/next-intl/blob/main/examples/example-app-router/src/app/%5Blocale%5D/not-found.tsx
This is expected, yet still not happy to see it
Cape May WarblerOP
Seems like I will have to get rid of internationalization from loading page and put simple spinner there
Answer