./app/(payload)/layout.tsx:14:41
Type error: 'RootLayout' cannot be used as a JSX component.
Its return type 'Promise<React.JSX.Element>' is not a valid JSX element.
Type 'Promise<React.JSX.Element>' is missing the following properties from type 'ReactElement<any, any>': type, props, key
12 | }
13 |
> 14 | const Layout = ({ children }: Args) => <RootLayout config={configPromise}>{children}</RootLayout>
| ^
15 |
16 | export default Layout
17 |
ELIFECYCLE Command failed with exit code 1.```
Has this ever happened to anyone?
**Original message from @ionic steeple - Moved from #archive_v3-feedback message (in #archive_v3-feedback)**
#```jsx./app/(payload)/layout.tsx:14:41Type error...
1 messages · Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
You cannot use this command in a community-help thread.
Its a default layout.jsx in (payload 3.0-beta02) and it happens in pnpm run dev
fixed.
Glad your issue was resolved! :tada: If you want to help make payload better, please give us a :star: on GitHub and review us - It helps us a lot.
🌟 Star Us on GitHub
👍 Review Us
how did you solved it?