Closed sergical closed 3 months ago
I pulled your PR locally and can't reproduce this error.
Try removing the entire node_modules
folder and yarn install
again.
I am using node 18.18.2 btw
whaaaaaa :/
I tried that and I am getting this in my server stack too
GET / 200 in 7ms
⨯ ../src/QueryClientProvider.tsx (18:11) @ useQueryClient
⨯ Internal error: Error: No QueryClient set, use QueryClientProvider to set one
at useQueryClient (./node_modules/@coinbase/onchainkit/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js:19:15)
Added an Avatar component to the homepage https://github.com/sergical/ossummer/pull/17/commits/2d86dbb100bb17226b0aaaa7bdc7e673239165a6
Also are you not seeing the type error either in the OnchainProviders file?
Using node 18.17.0 - but i doubt that has anything to do with this
What command are you running to get this?
Hmmm let me try checking the typescript. I am using neovim + biome. One sec
neovim + biome
Wouldn't expect any less from you
What command are you running to get this?
yarn dev
Derp. I was on the main branch lol
One sec
Yup I see it now
OK, I think this is a problem from OnchainKit bundling the viem and wagmi in the bundle directly.
Can you stay on for like 15 min? I can push a new release without those bundled in.
For you, I'll pull an all nighter
(kinda wanna make sure all of this works before buildathon deadline at the end of the month lol)
Thank you very much <3
on it
Aight 0.22.4 released. Think it's working now.
TS error went away. Still complaining about queryclientprovider :/
Where is that at? From yarn dev
?
yeah, yarn dev
and hit localhost:3000
latest on that branch has 0.22.4 and the Avatar component in HomePage.tsx. removing Avatar component doesn't render an error.
Yup see it
I think this is the same problem as we bundle up @tanstack/react-query
as well
Forgot this isn't slack and i can't do /giphy
but cool to know github is beta testing slash commands
Verified this by removing @tanstack/react-query
in the package.json
and recompiling after using no cache.
Aight let me move that to peer dependencies as well
Not using graphql but wondering if that might cause an issue down the line too just inspecting the package.json for onchainkit
Hmm yes it might. We need to move away from getting eas attestations via graphql
v0.22.5 released
I'm gonna tackle the graphql stuff tomorrow. Clocked in 12+ hours already today lol
@Zizzamia this man is 🐐 just fyi gn fren!
everything works as expected now
Describe the bug and the steps to reproduce it
web/src/OnchainProviders.tsx
Full TS error
Also issue with QueryClientProvider
This is when signed in and
Avatar
component is rendered (I think) - client stack trace belowWhat's the expected behavior?
Render without errors
What version of the libraries are you using?
"@coinbase/onchainkit": "0.22.3", "viem": "2.x", "wagmi": "^2.9.2", "@privy-io/react-auth": "^1.71.0", "@privy-io/server-auth": "^1.7.3", "@privy-io/wagmi": "^0.2.10",