jlorezz
jlorezz2y ago

Type error: The inferred type of 'trpc' cannot be named without a reference....

./src/lib/api.ts:21:14
@driveorg/dashboard:build: Type error: The inferred type of 'trpc' cannot be named without a reference to '.pnpm/@trpc+react-query@10.26.0_@tanstack+react-query@4.28.0_@trpc+client@10.26.0_@trpc+server@10.2_ssrxcmysrtuzb43rctcerwnzbe/node_modules/@trpc/react-query/shared'. This is likely not portable. A type annotation is necessary.
./src/lib/api.ts:21:14
@driveorg/dashboard:build: Type error: The inferred type of 'trpc' cannot be named without a reference to '.pnpm/@trpc+react-query@10.26.0_@tanstack+react-query@4.28.0_@trpc+client@10.26.0_@trpc+server@10.2_ssrxcmysrtuzb43rctcerwnzbe/node_modules/@trpc/react-query/shared'. This is likely not portable. A type annotation is necessary.
No description
2 Replies
jlorezz
jlorezzOP2y ago
could this be due to
"declaration": true,
"declarationMap": true,
"declaration": true,
"declarationMap": true,
i need this for prisma tho (using turborepo)
trash
trash2y ago
i’d be surprised if that the case. does the error actually go away when you disable those?

Did you find this page helpful?