-
DescriptionApp is working fine, but I'm seeing this annoying error message in the console: I was not able to reproduce in codesandbox but maby someone could help me understand where this comes from 🙏
This is my RootLayout file:
Mandatory reproduction URL (CodeSandbox or GitHub repository)Reproduction descriptionExpected behaviour |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'll move this to a discussion, since it's not an issue but a usage question—I hope you understand! |
Beta Was this translation helpful? Give feedback.
-
Ok I was able to fix this! The RootLayout code above, I moved it outside of the [locale] folder but kept a copy of it inside the [locale] folder and renamed it to "LocaleLayout". The RootLayout file code now looks like this: // app/layout.tsx (direct copy from next-intl examples https://github.com/amannn/next-intl/blob/main/examples/example-next-13-next-auth/src/app/layout.tsx
My LocaleLayout looks like this now: // app/[locale]/layout.tsx
|
Beta Was this translation helpful? Give feedback.
Ok I was able to fix this!
The RootLayout code above, I moved it outside of the [locale] folder but kept a copy of it inside the [locale] folder and renamed it to "LocaleLayout".
The RootLayout file code now looks like this:
// app/layout.tsx (direct copy from next-intl examples https://github.com/amannn/next-intl/blob/main/examples/example-next-13-next-auth/src/app/layout.tsx