Typescript error: This expression is not callable - findOne

I have a next.js app that connects to a mongoDB and after upgrading Typescript to the latest version the code I use to get a user from my database no longer works. There is a typescript error on the findOne method.

The typescript error reads: This expression is not callable. Each member of the union type… has signatures, but none of those signatures are compatible with each other.

The code is: const user = await User.findOne({email})

Any suggestions?