Upon cloning an express TypeScript project, I encountered a Typescript error within a Mongo related function as mentioned in the title.
Property 'fullDocument' does not exist on type 'ChangeStreamDocument<IUser>'.
Property 'fullDocument' does not exist on type 'ChangeStreamDropDocument'.
52 const id = data.fullDocument?.user_id || ''
This particular project runs without any issues on other machines, but for some reason, this error only occurs on my own machine.
Despite attempting to resolve the issue by downgrading my TypeScript and node version, the problem persists. My suspicion is that it could be a versioning conflict, and I would greatly appreciate any guidance in identifying the root cause.
The versions in use are as follows: [email protected], [email protected], @types/[email protected]