-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Can't resolve '@mui/styled-engine' #30599
Comments
I'm having the same issue it's extremely strange, everything was working fine and without any changes to my site I ran into this error. Funny thing is I have a build live on vercel that's working from before the bug. I cloned the repo from that build and ran it and got the error. It's not even consistent, sometimes with the exact same dependencies on a fresh installation I have no problems. |
I also saw that the |
Are you using |
Using yarn with yarn workspaces and lerna |
Since the issue is missing key information, and has been inactive for 7 days, it has been automatically closed. |
Was it solved somehow? |
There wasn't any reproduction (repository) for us to look into, so the issue was automatically closed. If you have a reproduction, share it with us and we can re-open the issue. |
In the subpackage I was getting this with Lerna too. Seems like adding the module resolver plugin works, just incase it helps anyone else out.
|
This is still happening.. wondering where the problem is..
I have styled-engine folder under node_modules/@mui (and the engine is styled-compoennt-sr) I saw it working when changed styled-engine version to a different one (from 5.3.0 to latest) But after reinstalling all again (because I watend to see if it was working correctly) then it started to fail again |
Do not do package.json {
"dependencies": {
- "@mui/styled-engine": "latest"
+ "@mui/styled-engine": "npm:@mui/styled-engine-sc@latest"
},
+ "resolutions": {
+ "@mui/styled-engine": "npm:@mui/styled-engine-sc@latest"
+ },
} Just do |
I also faced the same issue, but after couple of packages reinstall and app build, it did go on its own. |
Because of the hard github templates I almost forgot to say: Thank you so much for all the hard work on this library! I'm coming from a few different design-systems and I really love the components and api of mui! ❤️
Duplicates
Latest version
Current behavior 😯
After following the installation guide, when starting the app I'm getting following errors.
I'm using styled-components but also tried temporarily adding emotion to my project which seems to work fine. I have followed the
styled-engine-sc
guide carefully but the error sticks around.I'm using CRA with lerna and yarn workspaces. The
styled-engine
folder does appear in the root node_modules folder but for some reason, it can't be resolved.Also tried deleting all packages in
node_modules
and reinstalled multiple times.Expected behavior 🤔
No errors
Steps to reproduce 🕹
Couldn't find a way to reproduce this in a codesandbox yet but judging from the closed issues #28559 and #27846, some people that were commenting there were running into similar issues.
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: