Package pg can't be external
I am creating a
turborepo
with two next.js apps, and a db package that uses drizzle-orm, and api package that uses trpc.
I have things set up according to the docs, but when I run the web app (pnpm run dev), it error out with the following error:
I have created a repo for the same, https://github.com/adeshgg/ultimate-monorepo/tree/feat/auth-in-api
I am new to turborepo, Is there something that I am missing here?GitHub
GitHub - adeshgg/ultimate-monorepo at feat/auth-in-api
Contribute to adeshgg/ultimate-monorepo development by creating an account on GitHub.
Solution:Jump to solution
Solved it by add hoisting the pg package in
.npmrc
file
public-hoist-pattern[]=*pg*
...1 Reply
Solution
Solved it by add hoisting the pg package in
.npmrc
file
public-hoist-pattern[]=*pg*