-
-
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
[material-ui] Minimizing bundle using 'babel-plugin-import' results in 'Cant Resolve...' errors #42326
Comments
Same problem with me |
The error occurs for |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @RonSmithRX! How was your experience with our support team? |
I could not find a way to highlight import errors on the web so leaving this here so somebody else does not have to repeat
My full no-restricted-import list
|
Steps to reproduce
Link to live example: https://codesandbox.io/p/devbox/282r7g (Go to "Development" tab).
Steps:
ThemeProvider
like this:import { ThemeProvider } from '@mui/material';
.ThemeProvider
somewhere, and start your app.Current behavior
An error is thrown:
Expected behavior
An error will not be thrown
Context
This error occurs for
ThemeProvider
,styled
,useTheme
, and several other imports I believeYour environment
Search keywords: bundle-size
The text was updated successfully, but these errors were encountered: