Upgrade tRPC from 9.12.0 to 9.12.2 breaks my existing code
See original GitHub issueHey,
I’ve just upgraded tRPC to 9.12.2 from 9.12.0 (client and server libs) - and my project immediately failed to compile with 147 type errors. Still have no idea what is the problem, maybe the way I must configure the router has changed? Thanks.
Update:
Found the problem.
npm install --legacy-peer-deps
won’t do it anymore, I’ll have to change some other dependencies from my project for this upgrade, because npm install
is not working for them.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
tRPC - Move Fast and Break Nothing. End-to-end typesafe ...
Move Fast and Break Nothing. ... It's easy to add to your existing projects. Autocompletion. Using tRPC is like using an SDK for...
Read more >@trpc/server: Versions | Openbase
This is because react-query 4 is introducing a series of breaking changes that can't be addressed in a cross-compatible way. We will likely...
Read more >Integrate live location sharing - Mautrix/Whatsapp - IssueHint
Upgrade tRPC from 9.12.0 to 9.12.2 breaks my existing code, 4, 2021-11-10, 2022-08-18. "Global" persistence and Graph persistence, 1, 2022-05-11, 2022-08-19.
Read more >trpc - githubmemory
trpc repo issues. ... One example project failing since TypeScript 4.5.2 upgrade ... Upgrade tRPC from 9.12.0 to 9.12.2 breaks my existing code....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh yeah, I read on it now
--legacy-peer-deps
shouldn’t be needed anymore, since 9.12.1 we don’t have for instance@trpc/server
as a hard dependency of@trpc/client
, instead it’s a peer dependency, so it won’t ever be installed twice.How did your package.json look before the upgrade? You always need to upgrade all
@trpc/*
together, that’s what I intended to enforce with this change.