-
|
Reproduction app: https://github.com/uriklar/turborepo-lib-dep-lib-repro I'm using Turborepo's basic example (nextjs app + ui library) I want to add an additional ui library and have my ui library depend on it. I created the anotherui library inside the packages directory and added it as a dependency of ui like so: When I try to build the web app (that consumes Button from ui) I'm getting the following error: My question is: Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I had a different but similar problem and this was super helpful. I had a new Nextjs app in the apps directory and I wasn't able to load ui components. So I added |
Beta Was this translation helpful? Give feedback.
-
|
Found the solution. It was actually related to Next.js.
So I just added "anotherui" to the array and it worked |
Beta Was this translation helpful? Give feedback.
Found the solution. It was actually related to Next.js.
Turborepo already uses a module called "next-transpile-modules" and in my
next.config.jsfile I already had this line:const withTM = require("next-transpile-modules")(["ui"]);So I just added "anotherui" to the array and it worked