nicoalbanese / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
2.58k stars 118 forks source link

react-query error when doing a fresh init #93

Closed elie222 closed 10 months ago

elie222 commented 10 months ago

Issue described here: https://github.com/TanStack/query/issues/6186

Kirimase adds:

"@tanstack/react-query": "^5.10.0",
"@trpc/client": "^10.44.1",
"@trpc/next": "^10.44.1",
"@trpc/react-query": "^10.44.1",

Dropping one of those down a version would fix this. Surprised no one else has encountered this so far.

nicoalbanese commented 10 months ago

Yes I had this exact issue a few months back when RQ first hit 5.0 and couldn't for the life of me figure out the issue. Eventually figured tracked it down to breaking changes that tRPC hasn't updated to resolve yet and downgraded just the RQ package which resolved everything. I updated the tRPC install command to specify the base version installed to be 4.32.1 (https://github.com/nicoalbanese/kirimase/blob/83b431467d6a7baca7ee76ed8fd8abc499550f2d/src/commands/add/misc/trpc/index.ts#L107) and I haven't had any issues since. Did you run the update command with your package manager? Does it make sense to fix the versions at 4.32.1?

elie222 commented 10 months ago

Hey, I just I was on version 0.17 so this may be why I was seeing issues. I'll close these soon as it's probably not an error on latest version.