纱线-错误Cand'找不到"@typescript eslint/type utils"匹配



使用docker处理节点应用程序。

在映像生成过程中,在安装步骤中获取错误。

在本地,安装工作良好。

我们使用nexus,但再次通过nexus在本地进行安装。

我试着为错误中的包添加分辨率,纱线抛出标题错误。

Package.json

{
"name": "my-graphql-service",
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/my-graphql-service.git",
"author": "Itay Tur",
"license": "MIT",
"scripts": {
"dev:edge2": "NODE_ENV=development nodemon -r dotenv/config src/index.ts dotenv_config_path=config/edge2.env",
"dev:qa": "NODE_ENV=development nodemon -r dotenv/config src/index.ts dotenv_config_path=config/qa.env",
"generate:integrations": "node src/generate-integrations-code.js",
"build": "rimraf build && NODE_ENV=production tsc --project tsconfig.json",
"start": "NODE_ENV=production node -r dotenv/config build/index.js dotenv_config_path=.env.graph",
"test": "NODE_ENV=development jest --detectOpenHandles --forceExit",
"test:watch": "NODE_ENV=development jest --watch --detectOpenHandles --forceExit",
"format": "prettier --write .",
"lint": "eslint . --fix",
"prepare": "husky install"
},
"resolutions": {
"pretty-format": "^26.0.1",
"jest-diff": "^25.1.0",
"jest-matcher-utils": "^25.1.0",
"@typescript-eslint/type-utils": "@5.30.6",
"@typescript-eslint/utils": "5.30.6"
},
"dependencies": {
"@graphile-contrib/pg-order-by-related": "^1.0.0-beta.6",
"@graphile-contrib/pg-simplify-inflector": "^6.1.0",
"@graphile/pg-aggregates": "^0.1.0",
"@openapitools/openapi-generator-cli": "2.1.22",
"cors": "^2.8.5",
"cptls-common-nodejs": "^5.1.5",
"dataloader": "^2.1.0",
"dotenv": "^16.0.1",
"express": "^4.18.1",
"postgraphile": "^4.12.9",
"postgraphile-plugin-connection-filter": "^2.3.0",
"rimraf": "^3.0.2",
"typescript": "^4.7.4"
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/jest": "^28.1.2",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"eslint": "^8.18.0",
"husky": "^8.0.0",
"jest": "^28.1.3",
"nodemon": "^2.0.16",
"prettier": "^2.7.1",
"supertest": "^6.2.3",
"ts-jest": "^28.0.5",
"ts-node": "^10.8.1"
}
}

解决方案:

  1. 删除node_modules&码锁定

  2. 删除分辨率

  3. 运行纱线

最新更新