#```jsx./app/(payload)/layout.tsx:14:41Type error...

1 messages · Page 1 of 1 (latest)

river crestBOT
#
./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 |
 ELIFECYCLECommand 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)**
#

You cannot use this command in a community-help thread.

ionic steeple
#

Its a default layout.jsx in (payload 3.0-beta02) and it happens in pnpm run dev

ionic steeple
#

fixed.

river crestBOT
worthy ferry
#

how did you solved it?