yeetcode.io
yeetcode.io
Explore posts from servers
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
I'm working on a social media app! I'll post it here when it is ready
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
what a nightmare!
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
Okay, I think I got it working! I migrated to yarn, used yarn workspaces, and removed all absolute paths from by backend
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
sure, thank you! i iwll get back to you
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
but im not sure if im misunderstanding the purpose of a monorepo
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
i only want to colocate the files for TRPC only
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
is there a benefit to using it? i dont have any shared deps
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
its a few months old
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
im not using any monorepo tool, which im not sure is the right way to go about it... the backend and frontend are just colocated
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
thanks yeah. I think I am having a parallel issue where I was using npm instead of yarn, and nohoist doesn't work in npm, so I am trying to migrate to yarn first.
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
omg, thank you so much! let me look at this and see if I can figure out what is wrong
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
And when I try to install that, I get this error:
error: Error: Unable to resolve module @trpc/client from my/file/path/frontend/App.tsx: @trpc/client could not be found within the project or in these directories:
error: Error: Unable to resolve module @trpc/client from my/file/path/frontend/App.tsx: @trpc/client could not be found within the project or in these directories:
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
I also believe I am supposed to have @trpc/server installed in the frontend, but when I do it doesn't fix anything
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
Do you know if what your tsconfig settings are? Do you have the same setup as me? @Ofir Smolinsky
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
And I don't have anything installed in my root folder
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
My backend:
"@trpc/server": "^11.0.0-rc.433",
"@trpc/server": "^11.0.0-rc.433",
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
"@trpc/client": "^11.0.0-rc.433",
"@trpc/react-query": "^11.0.0-rc.433",
"@trpc/client": "^11.0.0-rc.433",
"@trpc/react-query": "^11.0.0-rc.433",
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
The inferred type of 'trpc' cannot be named without a reference to '...'
My frontend:
38 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
My TRPC hooks are getting typed as `any`
Is there a reason this isn't listed in the docs anywhere (or did I miss it?). It seems like it should be a pretty common issue given how prevalent prisma is. I get it isn't an issue with TRPC per se, but it does seem like it could have a useful place here. I'd be happy to make a docs contribution.
7 replies
TtRPC
Created by yeetcode.io on 7/2/2024 in #❓-help
My TRPC hooks are getting typed as `any`
I got it fixed by following this four year old twitter thread: https://x.com/colinhacks/status/1298030688063561728?lang=en
7 replies