DiamondDragon
DiamondDragon7mo ago

No typesafety after migrating to 11?

Not sure what happened when upgrading from 10 to 11. tried deleting node modules and lock file and reinstalling. I'm using the AWS adapter I notice the .create() is typed as any, and therefore t is any
No description
11 Replies
julius
julius7mo ago
Can you post your tsconfig here as well as typescript version?
DiamondDragon
DiamondDragon7mo ago
Gist
tsconfig monorepo
tsconfig monorepo . GitHub Gist: instantly share code, notes, and snippets.
julius
julius7mo ago
where do you see the error and what configs does that extends? i'm guessing packages/trpc
julius
julius7mo ago
tried to reproduce here: https://github.com/t3-oss/create-t3-turbo/pull/841 (i didn't know what the core lib did so that's not part of this inference works for me, I do get a cannot be named without a reference to ... error for createCaller though, which I'll look into fixing. But everything else works. Can you create a reproduction of this in a public repo?
No description
Alex / KATT 🐱
we know there might be some problems like this! please open an issue with a reproduction repo, @DiamondDragon 🙏 🙏
DiamondDragon
DiamondDragon7mo ago
@Alex / KATT 🐱 @julius hmm I actually think it's due to the Biome extension. on a fresh t3-turbo repo you get these errors but once i turn off Biome and restart it goes away and works as expected. I'll open an issue. Stackblitz doesnt have node 20.10 so can't make a repo there (it has extensions) and codesandbox doesnt have extensions built in, so ill describe it
No description
No description
julius
julius7mo ago
I wonder why Biome would mess with typescript stuff Is the type actually any if you hover it or is it just the linter getting the wrong types resolved
DiamondDragon
DiamondDragon7mo ago
yeah it's typed as any and when hovering the imports it just says "import xxx"
julius
julius7mo ago
Sometimes ESLint also lies and says something’s any even when it isnt, but that’s usually solved with a restart of the eslint server Just in Stackblitz?
DiamondDragon
DiamondDragon7mo ago
Stackblitz is stuck on Node 18 so i had issues trying to use the turbo repo there. maybe ill try a normal server/client trpc repo. let me look for one
DiamondDragon
DiamondDragon7mo ago
I'm unable to reproduce it . I'm tracking it here but not having type issues https://github.com/austinm911/trpc-inference-issues. If i get more insight i'll try to repro it and make an issue. I also forked your pr https://github.com/austinm911/create-t3-turbo/commit/9d09f8016f3b681f64cde1a20698553e35840385 , having issues getting biome to work so not too sure
More Posts