Conflicting Star Exports Warnings with Next.js 13.5 and MUI #55740
Replies: 6 comments 2 replies
-
I recently got the same error and some sources said it's because of some circular imports happening while bundling using webpack. Anyway, my issue came from custom styled MUI components, and here's how I fixed it: Changed Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
@vilbert is correct. I had the same warnings and updated the imports to fix them. You can add an eslint import rule to catch these in the future. |
Beta Was this translation helpful? Give feedback.
-
based on @ticovix this is working for me, downgrade nextjs version from 13.5 to 13.4.19 remove the warning in terminal |
Beta Was this translation helpful? Give feedback.
-
@codemile , If you have the es-lint rule for this, could you please share it? |
Beta Was this translation helpful? Give feedback.
-
In my case it got fixed by changing:
to import ThemeProvider from "@mui/material/styles/ThemeProvider"; |
Beta Was this translation helpful? Give feedback.
-
I have one doubt in mui |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Since the recent update to Next.js, specifically in version 13.5, I've been encountering new warnings in the terminal related to dependencies. These warnings seem to be related to the handling of barrels (modules that re-export multiple modules) and might be caused by changes in how Next.js deals with them. While these warnings don't seem to affect the functionality of my application, they are filling up the terminal and preventing to read the logs.
Specific Errors:
Error 1:
Import trace for the requested module:
Error 2:
Import trace for the requested module:
[Repeat for other errors...]
These warnings are consistently appearing in the terminal, making it difficult to review other logs and debug effectively. While the application still functions correctly, did anyone have the same issue? am i missing something? 😮💨
Beta Was this translation helpful? Give feedback.
All reactions