Very weird error in root layout
Unanswered
American black bear posted this in #help-forum
American black bearOP
To implement next-intl without routing, I have to perform some async calls using "await" inside the root layout to getMessages and getLocale.
However, upon performing the async calls, the following error occurs:
Error: notFound() is not allowed to use in root layout
Remove the async calls renders the page normally. This is a pastebin with how my layout.tsx looks like WITH the async calls which crash it. https://pastebin.com/4DZY6eM7
Any help AT ALL is of great help, everyone. Thanks a lot!
However, upon performing the async calls, the following error occurs:
Error: notFound() is not allowed to use in root layout
Remove the async calls renders the page normally. This is a pastebin with how my layout.tsx looks like WITH the async calls which crash it. https://pastebin.com/4DZY6eM7
Any help AT ALL is of great help, everyone. Thanks a lot!