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

编程入门 行业动态 更新时间:2024-09-27 12:18:32

弃用警告:“originalKeywordKind”<a href=https://www.elefans.com/category/jswz/34/1630863.html style=已弃用,请改用“identifierToKeywordKind(identifier)”"/>

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

这是什么意思??

- 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"
  }

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

回答如下:

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

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

更多推荐

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

本文发布于:2024-05-31 07:19:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1771410.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:已弃用   originalKeywordKind   identifier   identifierToKeywordKind

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!