. Advertisement .
. Advertisement .
We all use tools to make our life easier, but when these tools fail we lose our patience. We all want to know the cause of the error and how to fix it quickly. Here are a few tips that will help you fix the error “Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\react\nfc\node_modules\@mui\styled-engine” and allow you to get back to work as quickly as possible.
Why dose this problem occur?
When attempting to import from mui/material or installing neumorphism-react package. On the other hand, working on a SPA(Single page application) and you used React to develop the application. But when you try to import a box component from @mui/material/Box but you may get the following error message.
Module not found: Can't resolve '@emotion/react' in 'E:\react\nfc\node_modules\@mui\styled-engine'
How To Fix The Error “Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\react\nfc\node_modules\@mui\styled-engine”?
Solution 1: Install emotion react as well as emotion styled
You can install emotion react and emotion styled at this point. So. simply type in the following command in your terminal:
npm i @emotion/react @emotion/styled
Solution 2: Install emotion react
Try installing the emotion react dependency. All you need to do is using the command:
npm install @emotion/react --save
Solution 3: Calling the yarn
yarn add @emotion/react yarn add @emotion/styled
We hope you enjoyed our blog post on how to solve the bug “Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\react\nfc\node_modules\@mui\styled-engine”. Please leave a comment if you have any further questions or concerns regarding this topic. Thank you for taking the time to read; we are always delighted anytime one of our pieces can give important information on this topic!
Leave a comment