-
-
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
Build warnings with Material UI - barrel_optimize #39093
Comments
I too have been seeing this error |
Left an idea in vercel/next.js#55663 (comment). |
I think Next.js has solved this issue in their latest canary release (source). |
Just tested and it the error is gone
|
Closing as the fix has been made in next.js |
I have this issue, even though my next.js version is 14.2.5. The underlying cause seems to definitely be something in mui that is conflicting during a star alan2207/bulletproof-react#124 (comment) In our case it was the To fix, we had to change our import from import { TextField, Toolbar, Grid, DataGrid } from '@mui/material'; to import { TextField, Toolbar, Grid } from '@mui/material';
import { DataGrid } from '@mui/x-data-grid'; Also, we needed to add For some reason, this prevents the warnings below.
|
Steps to reproduce 🕹
Link to live example:
Steps:
yarn dev
Current behavior 😯
Tons of error miessages:
⚠ Compiled with warnings
Expected behavior 🤔
No errors.
Context 🔦
The errors is clearly described an suggestions have come in:
vercel/next.js#55663
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: