[Solved] export 'useInsertionEffect' (imported as 'useInsertionEffect$1') was not found in 'react'

React JS Safiul Tarek

Problem: While trying to use Material UI but I get this annoying error. The error looks like,

export 'useInsertionEffect' (imported as 'useInsertionEffect$1') was not found in 'react'

Solution: Upgrade emotion/react

This bug is fixed in @emotion/react@11.8.1. We just need to update this package and the error should disappear. This was a Bug in the Previous version of emotion/react.


Thank you for reading the article.