close

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

I am trying to use Material UI But I am facing some annoying errors export ‘useInsertionEffect’ (imported as ‘useInsertionEffect$1’) was not found in ‘react’ in JavaScript. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.

How export ‘useInsertionEffect’ (imported as ‘useInsertionEffect$1’) was not found in ‘react’ Error Occurs ?

I am trying to use Material UI But I am facing some annoying errors.

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

How To Solve export ‘useInsertionEffect’ (imported as ‘useInsertionEffect$1’) was not found in ‘react’ Error ?

  1. How To Solve export 'useInsertionEffect' (imported as 'useInsertionEffect$1') was not found in 'react' Error ?

    To Solve export 'useInsertionEffect' (imported as 'useInsertionEffect$1') was not found in 'react' Error If Solution 1 Not worked then you need to use the below all versions: @mui/material@5.4.2 @emotion/react@11.7.1 @emotion/styled@11.6.0 Now, Your issue must be solved.

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

    To Solve export 'useInsertionEffect' (imported as 'useInsertionEffect$1') was not found in 'react' Error This was Bug in the Previous version of emotion/react But This bug is fixed in @emotion/react@11.8.1. You just need to update this package. Now, Your error must be solved.

Solution 1: Upgrade emotion/react

This was Bug in the Previous version of emotion/react But This bug is fixed in @emotion/react@11.8.1. You just need to update this package.

Now, Your error must be solved.

Solution 2: Use This Version

If Solution 1 Not worked then you need to use the below all versions.

@mui/material@5.4.2 
@emotion/react@11.7.1 
@emotion/styled@11.6.0

Now, Your issue must be solved.

Summary

It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment