question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade tRPC from 9.12.0 to 9.12.2 breaks my existing code

See original GitHub issue

Hey,

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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KATTcommented, Nov 10, 2021

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.

1reaction
KATTcommented, Nov 10, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found