小编Cam*_*mbo的帖子

在 tsconfig.json 中找不到“body-parser”的类型定义文件

我在 [1,1] 处的 tsconfig.json 文件中收到此错误六次:

Cannot find type definition file for 'body-parser'.
  The file is in the program because:
    Entry point for implicit type library 'body-parser'
Run Code Online (Sandbox Code Playgroud)

我真的不确定为什么会收到此错误,更不用说六次了。任何帮助将不胜感激。

这是我的 tsconfig:

{
  "compilerOptions": {
    /* Visit https://aka.ms/tsconfig.json to read more about this file */

    /* Projects */
    // "incremental": true,                              /* Enable incremental compilation */
    // "composite": true,                                /* Enable constraints that allow a TypeScript project to be used with project references. */
    // "tsBuildInfoFile": "./",                          /* Specify the folder for .tsbuildinfo …
Run Code Online (Sandbox Code Playgroud)

typescript reactjs tsconfig body-parser

15
推荐指数
3
解决办法
2万
查看次数

标签 统计

body-parser ×1

reactjs ×1

tsconfig ×1

typescript ×1