Type Declaration with TypeScript in Monorepo failes

I am trying to setup a monorepo with moon and pnpm, where shema lives in an additional package and is imported by other apps. Is there any monorepo example?
Currently I get following error:
../db/src/schema/products.ts(4,14): error TS2742: The inferred type of 'products' cannot be named without a reference to '../../node_modules/drizzle-orm/db.d-a6fe1b19.js'. This is likely not portable. A type annotation is necessary.


There is an GitHub Issue already, can anyone help with workarounds or fixes, explanations?
https://github.com/drizzle-team/drizzle-orm/issues/656
GitHub
What version of drizzle-orm are you using? 0.26.1 What version of drizzle-kit are you using? 0.18.1 Describe the Bug TL;DR TypeScript can't compile simple schema.ts file with users example tabl...
Was this page helpful?