Describe the bug
Getting the dreaded The inferred type of "xyz" cannot be named without a reference to ../node_modules/.pnpm/@tanstack+db@0.5.11_typescript@5.9.3/node_modules/@tanstack/db/dist/esm/query/builder/types. This is likely not portable. A type annotation is necessary. error when trying to use query joins in a project that uses ts project references.
To Reproduce
Steps to reproduce the behavior:
- Clone https://github.com/getdatanaut/tanstack-repro
pnpm i
- Open
src/index.ts and you should see the ts error.
Or just copy https://github.com/getdatanaut/tanstack-repro/blob/main/src/index.ts into a project that has declaration: true in the tsconfig.json.