Closed Yovach closed 2 years ago
Ah I think the issue here is that the infinite
directory is not being published. That directory is essentially a proxy for the dist
files to satisfy TypeScript.
I can run my Next.js with npm run dev
so yes it's definitely TypeScript related. I tried to solve this but I don't know enough about publishing packages..
I'll fix it later today and do a publish
fixed in v0.1.5
Oh, thank you!
Hi, I can't import
import { getUseSWRInfinite } from 'trpc-swr/infinite'
because it's seems invalid.My project is a Next.js project with this tsconfig.json :
When I set
moduleResolution
tonode16
,trpc-swr/infinite
is detected and can be imported but an error appears : Could not find a declaration file for moduletrpc-swr
.NPM Version : 8.11.0 Node Version : 16.15.1 Next.js version : 12.2.2 trpc-swr version: 0.1.3
Thanks !
EDIT: I can also import
trpc-swr/infinite
withtrpc-swr/dist/infinite