弃用警告:“originalKeywordKind”已弃用,请改用“identifierToKeywordKind(identifier)”

问题描述 投票:0回答:1

这是什么意思??

- info Linting and checking validity of types ...DeprecationWarning: 'originalKeywordKind' has been deprecated since v5.0.0 and will no longer be usable after v5.2.0. Use 'identifierToKeywordKind(identifier)' instead.

我正在使用下一个13.4。 我的依赖项如下:

    "@prisma/client": "^5.0.0",
    "@types/bcryptjs": "^2.4.2",
    "@types/node": "^20.4.5",
    "@types/react": "^18.2.16",
    "@types/react-dom": "^18.2.7",
    "axios": "^1.4.0",
    "bcryptjs": "^2.4.3",
    "eslint": "^8.45.0",
    "eslint-config-next": "^13.4.12",
    "next": "^13.4.12",
    "next-auth": "^4.22.3",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-hook-form": "^7.45.2",
    "react-uuid": "^2.0.0",
    "typescript": "^5.1.6"
  },
  "devDependencies": {
    "@vercel/analytics": "^1.0.1",
    "autoprefixer": "^10.4.14",
    "postcss": "^8.4.27",
    "prettier-plugin-tailwindcss": "^0.4.1",
    "prisma": "^5.0.0",
    "tailwindcss": "^3.3.3"
  }

我不知道,但我看到了这些警告。我不是

node.js reactjs typescript next
1个回答
0
投票

这指的是 Typescript 中的更改:https://github.com/microsoft/TypeScript/blob/main/src/deprecatedCompat/5.0/identifierProperties.ts#L28

还有一些东西,可能是你的依赖项之一,还没有适应这一变化,但这只是一个弃用警告,所以目前不用担心。 🙂

© www.soinside.com 2019 - 2024. All rights reserved.