Cannot read properties of undefined (reading 'createTRPCReact')
I'm trying to use it in an Astro project.
https://github.com/Industrial/test-astro-solid/blob/main/src/lib/trpc.ts
I think I implemented it as per the example https://trpc.io/docs/react#2-create-trpc-hooks
GitHub
test-astro-solid/trpc.ts at main ยท Industrial/test-astro-solid
Contribute to Industrial/test-astro-solid development by creating an account on GitHub.
Usage with React | tRPC
How to use and setup tRPC in React
4 Replies
I don't know why.but please try pnpm install again or restart VSCode.
@backbone I did
rm -rf node_modules && pnpm install
and same thing
@backbone could you run git clone git@github.com:Industrial/test-astro-solid.git && cd test-astro-solid && pnpm i && pnpm dev
to reproduce ?Sorry, I would try this repo
Thank you ๐
I got it! I'm using SolidJS and not React so I don't need
react-query
.
That's all you need ๐