Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Type 'Promise<Element>' is missing the following properties from type 'ReactElement<any, any>': type, props, key

Kenny answered on May 7, 2023 Popularity 8/10 Helpfulness 1/10

Contents


More Related Answers


Type 'Promise<Element>' is missing the following properties from type 'ReactElement<any, any>': type, props, key

0

Type 'Promise' is missing the following properties from type 'ReactElement': type, props, key 

An async Server Components will cause a 'Promise' is not a valid JSX element type error where it is used. This is a known issue with TypeScript and is being worked on upstream. Adding the above snippet is a temporary workaround.

Popularity 8/10 Helpfulness 1/10 Language javascript
Source: Grepper
Link to this answer
Share Copy Link
Contributed on May 07 2023
Kenny
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.