Mongodb – why do i get an error when i try to use my models?
I'm developing a NextJS app with Mongoose. And I get a "Cannot read properties of null (reading 'get')" error when I try to use my models from Mongoose. Here is a screenshot of the error: I've checked that I've imported…