【发布时间】:2022-08-04 02:02:00
【问题描述】:
这是VS代码中的错误
Cannot find type definition file for \'accepts\'.
The file is in the program because:
Entry point for implicit type library \'accepts\'
我尝试使用 \"yarn add @types/accepts\" 为 \'accepts\' 安装类型,但随后它为 \"body-parser\" 显示相同的错误,并继续告诉我为我不知道的不同软件包。
包版本:
\"next\": \"^12.0.8\"
\"tailwindcss\": \"^3.0.15\",
\"postcss\": \"^8.4.5\",
\"autoprefixer\": \"^10.4.2\",
\"typescript\": \"^4.5.5\"
标签: reactjs typescript visual-studio-code next.js tailwind-css