Next.js Discord

Discord Forum

NextJS cannot load libraries from my workspace at build time

Unanswered
Ant posted this in #help-forum
Open in Discord
AntOP
Hi I added a project (design-system) as a workspace project in my nextjs project. When I run npm i from the next proj I can see the dependacies of the design-system proj are also installed in the nextjs project's node_modules folder. But when I try to build the project. next js cannot resolve the module imports inside the design-system project. Giving module not found. Modules are not installed in design-system's node_modules but in nextJs project's node_module how to fix that.

0 Replies