Next.js Discord

Discord Forum

Monorepo Code sharing

Unanswered
Tan posted this in #help-forum
Open in Discord
TanOP
hey guys, I am working for the first time with monorepos (using turbo with pnpm workspaces). How does code sharing work here ? My folder structure is like this: root has apps and packages and I am implementing a logger package in packages which I want to import in the api project in apps and use it there. I tried doing this https://turbo.build/repo/docs/handbook/sharing-code/internal-packages and this works in dev mode but errors out when I run build and start scripts

0 Replies