t
tRPC
t
tRPC
AppRouter imported as any
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
2/6/23, 3:28 PM
Does your tsconfig have a
“path
” set for
@dw
/manager
-api
? It might just not know how to resolve it
N
Nick
•
2/6/23, 3:29 PM
Though I
’d expect to see an error there
N
Nick
•
2/6/23, 3:30 PM
Got it that does make sense
N
Nick
•
2/6/23, 3:31 PM
Is it possible that you just need to reload the typescript language server
?
N
Nick
•
2/6/23, 3:31 PM
I
’ve seen types coming up as any when it gets stuck
N
Nick
•
2/6/23, 3:35 PM
Hm
, afraid those are my ideas done
. It
’s probably something quite specific to your setup but I
’m not a pnpm user myself
N
Nick
•
2/6/23, 3:36 PM
Hope you figure it out
. I do wonder if it
’s something like this
https://www.typescriptlang.org/tsconfig#preserveSymlinks
TSConfig Reference - Docs on every TSConfig option
From allowJs to useDefineForClassFields the TSConfig reference includes information about all of the active compiler flags setting up a TypeScript project
.
N
Nick
•
2/6/23, 3:37 PM
Or maybe you should add tsconfig paths just to help the language resolve the source
.
I
isaac_way
•
2/6/23, 3:52 PM
i had this issue but forget exactly how i fixed it
, pretty sure it was a tsconfig thing
. Make sure
strict: true
strict: true
, add project references
:
"compilerOptions": { "strict": true }, "references": [ { "path": "../api" } ]
"compilerOptions": { "strict": true }, "references": [ { "path": "../api" } ]
I
isaac_way
•
2/6/23, 3:53 PM
references aren
't always necessary but for some reason in my project I was getting
"any
" without them
strict: true
strict: true
"compilerOptions"
: {
"strict"
:
true
},
"references"
: [
{
"path"
:
"../api"
}
]
"compilerOptions"
: {
"strict"
:
true
},
"references"
: [
{
"path"
:
"../api"
}
]