Ahmad Awais

NAVIGATE


SHARE


‘Promise‘ is not a valid JSX element | Async React Server Component TypeScript Error in Next.js

Ahmad AwaisAhmad Awais

TypeScript DOES NOT like Async React Server Components in Nextjs โ€” here’s a fix ๐Ÿ‘Š

Hey, developers! Next.js React Server Components are pretty awesome. TypeScript, as you can imagine, has a small issue with them. You might have encountered the “‘Promise<Element>’ is not a valid JSX element type” error. But fret not because there’s a quick fix!

In this OneDevMinute video, I’ll show you a simple workaround to disable type-checking for async Server Components. With one step, you’ll be back on track.

Check out the video now to save time and stay productive! And if you find it helpful, don’t forget to hit that “Subscribe” button and leave a reply.

Happy coding, folks!ย 

Lovely jubbly, now you know!

 

Founder & CEO at Langbase.com โ€” Ship hyper-personalized Al apps in seconds ยท Ex VP DevRel Eng. Rapid ยท Google Developers Advisory Board (gDAB) founding member. ๐Ÿง‘โ€๐Ÿ’ป AI/ML/DevTools Angel Investor โฏ AI/ML Advisory Board member San Francisco, DevNetwork

๐ŸŽฉ Award-winning Open Source Engineer & Dev Advocate ๐ŸฆŠ Google Developers Expert Web DevRel ๐Ÿš€ NASA Mars Ingenuity Helicopter mission code contributor ๐Ÿ† 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer).

๐ŸŒณ Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator. ๐Ÿ“Ÿ Teaching thousands of developers Node.js CLI Automation (100 videos ยท 22 Projects) & VSCode.pro course. Over 142 million views, 24 yrs Blogging, 108K developers learning, 200+ FOSS.

โœŒ๏ธ Author of various open-source dev-tools and software libraries utilized by millions of developers worldwide โ“ฆ WordPress Core Developer ๐Ÿ“ฃ TEDx Speaker with 100+ international talks.

โœจ As quoted by: Satya Nadella ยท CEO of Microsoft โ€” Awais is an awesome example for developers.
๐Ÿ™Œ Leading developers and publishing technical content for over a decade ๐Ÿ’œ Loves his wife (Maedah) โฏ Read more about Ahmad Awais.

๐Ÿ‘‹โ€ฆ Awais is mostly active on ๐• @MrAhmadAwais

๐Ÿ“จ

Developers Takeaway

Stay ahead in the web dev community with Ahmad's expert insights on open-source, developer relations, dev-tools, and side-hustles. Insider-email-only-content. Don't miss out - subscirbe for a dose of professional advice and a dash of humor. No spam, pinky-promise!

โœจ 172,438 Developers Already Subscribed
Comments 0
There are currently no comments.