I have taken over the responsibility of maintaining the websites at my company, and I am encountering the error message (Property 'findOne' does not exist on type 'Schema<Document<any, {}>, Model<any, any>, undefined>').
The website is currently live, and I pulled the code from GitHub. I am trying to determine if there might be a missing package or some other issue.
Below is the content of my package.json file:
{
"name": "zenexint.com",
"version": "4.0.0",
"private": true,
"main": "bin/build/server.bundle.js",
"description": "ZenexInt.com",
"scripts": {
"watch": "webpack -d -w --env.development",
"build": "webpack -p --env.production"
},
"devDependencies": {
"@babel/core": "^7.14.0",
"@types/mongoose": "5.10.5",
"@types/node": "^6.9.2",
"@types/react": "^16.8.4",
"@types/react-dom": "^16.8.4",
"@types/react-router": "^5.1.3",
"source-map-loader": "^0.2.4",
"ts-loader": "^6.2.1",
"typescript": "^3.7.4",
"webpack": "^4.46.0",
"webpack-cli": "^4.6.0"
},
"dependencies": {
...
}
}
The snippet of code that is generating the error is as follows:
...
After reviewing the code and dependencies listed in package.json, it seems like everything is in place. However, I'm unsure if I might be overlooking something crucial or if there is a more substantial underlying issue that needs to be addressed.