You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'App' cannot be used as a JSX component.
Its type '() => Promise<JSX.Element>' is not a valid JSX element type.
Type '() => Promise<JSX.Element>' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
Type 'Promise<Element>' is not assignable to type 'ReactNode'
when I make app an async component with use server
The expected behavior
It works with app as a server component
The text was updated successfully, but these errors were encountered:
And enable the types for the Experimental release channel either via an import 'react/experimental' or /// <reference types="react/experimental" /> in at least one file that's part of your TypeScript project.
React version:
Canary (19.0.0-canary-95e6f032c-20240401)
Steps To Reproduce
Link to code example:
https://github.com/InsightfulFuture/react-19-ts
The current behavior
I get the error:
when I make app an async component with use server
The expected behavior
It works with app as a server component
The text was updated successfully, but these errors were encountered: