Property does not exist on type..but it clearly does.
The model:
in the inner if statement i am getting a typescript error. Property 'id' does not exist on type (see screenshot)
It does exist, the hover over shows it exists. I'm so confused
i've upgraded typescript, restarted it, re-generated prisma client, reinstalled all node modules, restarted vs code, restarted computer. tried to cast (lastIdResult as DescriptionDiff).id
none of it works, keeps telling me it does not exist, while showing me that it does. Any help is appreciated.
none of it works, keeps telling me it does not exist, while showing me that it does. Any help is appreciated.
3 Replies
sigh i forgot to add await. i'm leaving this here for other people who have brain dead moments.
Don't worry, I lost 3h of my life to scoping in js today
i can relate 🙂