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.