Rak*_*han 7 mongoose mongodb node.js
我试图在服务器中构建代码,但是当我尝试构建其时,显示以下错误 node_modules/mongoose/node_modules/mongodb/mongodb.ts34.d.ts:3288:5 - 错误 TS1005: '?' 预期的。node_modules/mongoose/node_modules/mongodb/mongodb.ts34.d.ts:4517:311 - 错误 TS1005: ';' 预期的。

包.json
“依赖项”:{
"@types/lodash": "^4.14.119",
"@types/mongodb": "^4.0.7",
"@types/npm": "^2.0.29",
"axios": "^0.24.0",
"bcrypt": "^5.0.1",
"bcryptjs": "^2.4.3",
"类验证器": "^0.9.1",
"压缩": "^1.7.3",
"connect-multiparty": "^2.2.0",
"加密": "^1.0.1",
"crypto-js": "^4.1.1",
"dotenv": "^6.2.0",
“枚举”:“^2.5.0”,
"eslint-import-resolver-node": "^0.3.2",
"express": "^4.16.4",
"express-session": "^1.17.2",
"fs": "0.0.1-安全",
"头盔": "^3.15.0",
"应用内购买": "^1.11.4",
"ip-to-location": "^1.0.1",
"jm-ez-l10n": "^1.0.0",
"jm-ez-mysql": "^2.3.0",
"jsonwebtoken": "^8.4.0",
“方法覆盖”:“^3.0.0”,
"时刻": "^2.29.1",
"时刻-时区": "^0.5.25",
"猫鼬": "^6.0.4",
"摩根": "^1.9.1",
"multer": "^1.4.3",
"节点-cron": "^3.0.0",
"node-jsencrypt": "^1.0.0",
"node-php-password": "^0.1.2",
"node-uuid": "^1.4.8",
“nodemon”:“^2.0.12”,
"nvm": "^0.0.4",
"oauth2orize": "^1.11.1",
"otp-生成器": "^2.0.1",
"passport-http-bearer": "^1.0.1",
"路径": "^0.12.7",
"q": "^1.5.1",
"随机字符串": "^1.2.1",
"请求": "^2.88.0",
"请求ip": "^2.1.3",
"ts-node-dev": "^1.0.0-pre.32",
"uuidv4": "^6.2.12",
“温斯顿”:“^3.1.0”
},
“开发依赖项”:{
"@types/bcryptjs": "^2.4.2",
"@types/body-parser": "^1.17.0",
"@types/node": "^15.14.0",
"@types/node-uuid": "0.0.28",
"@types/q": "^1.5.2",
"哈士奇": "^1.3.1",
"rimraf": "^2.6.3",
"ts-node": "^8.0.3",
"tslint": "^5.20.1",
“打字稿”:“^3.4.1”,
“typescript-eslint-解析器”:“^21.0.2”
}
}
tsconfig.json
{
“compileOnSave”:true,
“编译器选项”:{
“目标”:“es6”,
“模块”:“commonjs”,
"outDir": "./dist",
“源地图”:正确,
“skipLibCheck”:正确,
“experimentalDecorators”:正确,
“allowJs”:正确,
“插件”:[
{“名称”:“打字稿-tslint-插件”,
“alwaysShowRuleFailuresAsWarnings”:假,
“ignoreDefinitionFiles”:正确,
"configFile": "../tslint.json",
“suppressWhileTypeErrorsPresent”:假}
]
},
“文件”:[
“./node_modules/@types/node/index.d.ts”
],
“包括”: [
“src/**/*.ts”
],
“排除”: [
“节点模块”
],
}