Incorrect type errors

Mmagicspon4/17/2023
No idea if this is a trpc issue, but i'm having a bit of a nightmare with type errors.
Nothing is showing up in vscode, but when I run eslint I'm getting a bunch of errors that shouldn't be showing.
Has anyone seen anything like this before?
Nnlucas4/17/2023
That’s typescript errors, most likely if VS Code isn’t also complaining you’ve got some project setup issue, like with tsconfig
Nnlucas4/17/2023
CLI is using a different setup from VS Code
Nnlucas4/17/2023
It’s probably right too, are you sure that User type has an ID on it?
Mmagicspon4/17/2023
yup, id is definitely there
Nnlucas4/17/2023
That’s an intersection type, and the TS error is complaining about the other side of the intersection
Nnlucas4/17/2023
Are you sure the code being blamed is actually using the full intersection type?
Mmagicspon4/17/2023
i believe so... the weird thing is i have another project with exact same setup, with a bunch of the same files, but no complaints from running eslint/type checker
Mmagicspon4/17/2023
i'm using a mono repo, each "package" extends from a single eslint config, and the tsconfig extends from a single tsconfig (at the root of the repo)

using ts v 5.0.4,
Mmagicspon4/17/2023
so very spoooky!
Mmagicspon4/17/2023
Mmagicspon4/17/2023
thanks for your responses
Nnlucas4/17/2023
Paging @ixahmedxi as crazy config issues get slightly out of my own wheel house
Mmagicspon4/17/2023
this is what i changed
Mmagicspon4/17/2023
for some reason the next-auth module augmentation wasn't working as expected
(https://next-auth.js.org/getting-started/typescript#module-augmentation)
Mmagicspon4/17/2023
BAAAAAAM!
Iixahmedxi4/17/2023
why do you need to declare your own session type?
Mmagicspon4/17/2023
because i'm adding extra stuff to it