Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Material ui export 'useInsertionEffect' (imported as 'useInsertionEffect$1') was not found in 'react' using Appbar component

here is the error.

1: https://i.sstatic.net/Y2Zdo.png**strong text**enter image description here

here i am trying to use Appbar component of material ui but i get this error

like image 530
Jagadish Shrestha Avatar asked Dec 03 '25 09:12

Jagadish Shrestha


2 Answers

This was a bug that was caused by useInsertionEffect being referenced directly in the specifiers list of the import statement (React.useInsertionEffect instead of React['useInsertion' + 'Effect']).

It is fixed as of @emotion/[email protected] - upgrade to that version, and the error should disappear.

like image 187
CertainPerformance Avatar answered Dec 05 '25 21:12

CertainPerformance


npm install @mui/[email protected] @emotion/[email protected] @emotion/[email protected] solves everything...

like image 34
Savchyk Vladyslav Avatar answered Dec 05 '25 22:12

Savchyk Vladyslav