Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to import from mui/material But I am facing following error Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\react\nfc\node_modules\@mui\styled-engine’ in ReactJs. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How Module not found: Can't resolve '@emotion/react' in 'E:\react\nfc\node_modules\@mui\styled-engine' Error Occurs ?
- How To Solve Module not found: Can't resolve '@emotion/react' in 'E:\frontend\node_modules\@mui\styled-engine' Error ?
- Solution 1: Install emotion react and emotion styled
- Solution 2: Install emotion react
- Summary
How Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\react\nfc\node_modules\@mui\styled-engine’ Error Occurs ?
I am trying to import from mui/material But I am facing following error.
Module not found: Can't resolve '@emotion/react' in 'E:\react\nfc\node_modules\@mui\styled-engine'
How To Solve Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\frontend\node_modules\@mui\styled-engine’ Error ?
- How To Solve Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\frontend\node_modules\@mui\styled-engine’ Error ?
To Solve Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\frontend\node_modules\@mui\styled-engine’ Error Try to install emotion react dependency Just run this command: npm install @emotion/react –save Now, Your error should be solved.
- Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\react\nfc\node_modules\@mui\styled-engine’
To Solve Module not found: Can’t resolve ‘@emotion/react’ in ‘E:\frontend\node_modules\@mui\styled-engine’ Error Here you just need to install emotion react and emotion styled So Just run this comman in your terminal: npm i @emotion/react @emotion/styled Now, Your error should be solved.
Solution 1: Install emotion react and emotion styled
Here you just need to install emotion react and emotion styled So Just run this comman in your terminal.
npm i @emotion/react @emotion/styled
Now, Your error should be solved.
Solution 2: Install emotion react
Try to install emotion react dependency Just run this command.
npm install @emotion/react --save
Now, Your error should be solved.
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read