Cannot run application when "ui" is using @mui/material #346
-
Hello, I want from my "ui" monorepo package to extend @mui/material. When I import @mui/material to "ui" package (and to web as well), application does not run. This is the error:
This is the repo: https://github.com/AleksandrukTad/turborepo-mui I would really appreciate help! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
@AleksandrukTad, I ran into the same exact issue when I added the mui dependencies to the ui project. To resolve this, I deleted package-lock.json and node_modules from all directories in the repo and did a clean build. That resolved the issue. I can't explain why, but it did!!! |
Beta Was this translation helpful? Give feedback.
-
I ended with a similar error message after adding The problem was that I forget to update the const withTM = require("next-transpile-modules")(["@org/ui"]); |
Beta Was this translation helpful? Give feedback.
-
anyone got any solutions for this? |
Beta Was this translation helpful? Give feedback.
-
It seems that the official |
Beta Was this translation helpful? Give feedback.
I ended with a similar error message after adding
@org
to the packages (including ui, ie.@org/ui
).The problem was that I forget to update the
next.config.js
with the correct package name: