[Solved] Module not found: Can't resolve '@emotion/react' in 'E:\frontend\node_modules\@mui\styled-engine'

Article Ab Siddik

Problem:

Recently, we working on a SPA(Single page application), we used React to develop this application. But when we try to import a box component from @mui/material/Box. We face Module not found: Can't resolve '@emotion/react' in 'E:\frontend\node_modules\@mui\styled-engine' issue.


Solution:

Actually, it happened because @emotion/react and @emotion/styled are combined dependencies of many @mui packages. So we had to install these packages to resolve our problem.

npm i @emotion/react @emotion/styled

Thank you for reading the article. Hope the given solution will solve your problem.