asp.net核心Web应用程序在第二次调试时反应+ redux模板ts错误

时间:2018-08-30 21:01:04

标签: asp.net-core-mvc asp.net-core-2.0

我创建了项目,并且它在重新运行命令后首次启动应用程序时按预期工作

  

dotnet电子化开始

并启动该应用程序,有许多消息表明键入程序包存在问题。.我尝试了几次,这在每个项目中都会发生

我该如何解决?

Version: webpack 2.5.1
  Child
      Hash: 33a79eecc963d48d21fd
      Time: 3988ms
               Asset       Size  Chunks             Chunk Names
      main-client.js    13.5 kB       0  [emitted]  main-client
            site.css  729 bytes       0  [emitted]  main-client
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:122:6
          TS2300: Duplicate identifier 'BufferEncoding'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:293:18
          TS2300: Duplicate identifier 'EventEmitter'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:375:10
          TS2300: Duplicate identifier 'Platform'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:411:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'stdout' must be of type 'WriteStream', but here has type 'Socket'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:412:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'stderr' must be of type 'WriteStream', but here has type 'Socket'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:413:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'stdin' must be of type 'ReadStream', but here has type 'Socket'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:423:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'env' must be of type 'any', but here has type 'ProcessEnv'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:720:26
          TS2300: Duplicate identifier 'Buffer'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:720:50
          TS2300: Duplicate identifier 'SlowBuffer'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:764:5
          TS2300: Duplicate identifier 'export='.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:778:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'port' must be of type 'number | undefined', but here has type 'string | number | undefined'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:873:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'headers' must be of type 'any', but here has type 'IncomingMessageHeaders'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:875:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'trailers' must be of type 'any', but here has type '{ [key: string]: string; }'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:876:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'rawTrailers' must be of type 'any', but here has type 'string[]'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:922:18
          TS2300: Duplicate identifier 'Agent'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:980:18
          TS2300: Duplicate identifier 'Worker'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1059:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'worker' must be of type 'Worker', but here has type 'Worker | undefined'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1059:9
          TS2687: All declarations of 'worker' must have identical modifiers.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1060:9
          TS2403: Subsequent variable declarations must have the same type.  Variable 'workers' must be of type '{ [index: string]: Worker; }', but here has type '{ [index: string]: Worker; } | undefined'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1060:9
          TS2687: All declarations of 'workers' must have identical modifiers.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1271:22
          TS2451: Cannot redeclare block-scoped variable 'Z_NO_FLUSH'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1272:22
          TS2451: Cannot redeclare block-scoped variable 'Z_PARTIAL_FLUSH'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1273:22
          TS2451: Cannot redeclare block-scoped variable 'Z_SYNC_FLUSH'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1274:22
          TS2451: Cannot redeclare block-scoped variable 'Z_FULL_FLUSH'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1275:22
          TS2451: Cannot redeclare block-scoped variable 'Z_FINISH'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1276:22
          TS2451: Cannot redeclare block-scoped variable 'Z_BLOCK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1277:22
          TS2451: Cannot redeclare block-scoped variable 'Z_TREES'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1281:22
          TS2451: Cannot redeclare block-scoped variable 'Z_OK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1282:22
          TS2451: Cannot redeclare block-scoped variable 'Z_STREAM_END'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1283:22
          TS2451: Cannot redeclare block-scoped variable 'Z_NEED_DICT'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1284:22
          TS2451: Cannot redeclare block-scoped variable 'Z_ERRNO'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1285:22
          TS2451: Cannot redeclare block-scoped variable 'Z_STREAM_ERROR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1286:22
          TS2451: Cannot redeclare block-scoped variable 'Z_DATA_ERROR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1287:22
          TS2451: Cannot redeclare block-scoped variable 'Z_MEM_ERROR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1288:22
          TS2451: Cannot redeclare block-scoped variable 'Z_BUF_ERROR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1289:22
          TS2451: Cannot redeclare block-scoped variable 'Z_VERSION_ERROR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1293:22
          TS2451: Cannot redeclare block-scoped variable 'Z_NO_COMPRESSION'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1294:22
          TS2451: Cannot redeclare block-scoped variable 'Z_BEST_SPEED'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1295:22
          TS2451: Cannot redeclare block-scoped variable 'Z_BEST_COMPRESSION'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1296:22
          TS2451: Cannot redeclare block-scoped variable 'Z_DEFAULT_COMPRESSION'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1300:22
          TS2451: Cannot redeclare block-scoped variable 'Z_FILTERED'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1301:22
          TS2451: Cannot redeclare block-scoped variable 'Z_HUFFMAN_ONLY'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1302:22
          TS2451: Cannot redeclare block-scoped variable 'Z_RLE'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1303:22
          TS2451: Cannot redeclare block-scoped variable 'Z_FIXED'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1304:22
          TS2451: Cannot redeclare block-scoped variable 'Z_DEFAULT_STRATEGY'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1718:10
          TS2300: Duplicate identifier 'Completer'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1719:10
          TS2300: Duplicate identifier 'AsyncCompleter'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1721:17
          TS2300: Duplicate identifier 'CompleterResult'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:1758:18
          TS2300: Duplicate identifier 'Script'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2041:18
          TS2300: Duplicate identifier 'URLSearchParams'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2058:18
          TS2300: Duplicate identifier 'URL'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2079:18
          TS2451: Cannot redeclare block-scoped variable 'ADDRCONFIG'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2080:18
          TS2451: Cannot redeclare block-scoped variable 'V4MAPPED'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2327:16
          TS2403: Subsequent variable declarations must have the same type.  Variable 'Socket' must be of type 'new (options?: { fd?: number | undefined; allowHalfOpen?: boolean | undefined; readable?: boolean...', but here has type 'new (options?: { fd?: string | undefined; type?: string | undefined; allowHalfOpen?: boolean | un...'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2435:10
          TS2300: Duplicate identifier 'SocketType'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2866:22
          TS2451: Cannot redeclare block-scoped variable 'F_OK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2869:22
          TS2451: Cannot redeclare block-scoped variable 'R_OK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2872:22
          TS2451: Cannot redeclare block-scoped variable 'W_OK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2875:22
          TS2451: Cannot redeclare block-scoped variable 'X_OK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2880:22
          TS2451: Cannot redeclare block-scoped variable 'O_RDONLY'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2883:22
          TS2451: Cannot redeclare block-scoped variable 'O_WRONLY'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2886:22
          TS2451: Cannot redeclare block-scoped variable 'O_RDWR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2889:22
          TS2451: Cannot redeclare block-scoped variable 'O_CREAT'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2892:22
          TS2451: Cannot redeclare block-scoped variable 'O_EXCL'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2895:22
          TS2451: Cannot redeclare block-scoped variable 'O_NOCTTY'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2898:22
          TS2451: Cannot redeclare block-scoped variable 'O_TRUNC'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2901:22
          TS2451: Cannot redeclare block-scoped variable 'O_APPEND'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2904:22
          TS2451: Cannot redeclare block-scoped variable 'O_DIRECTORY'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2907:22
          TS2451: Cannot redeclare block-scoped variable 'O_NOATIME'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2910:22
          TS2451: Cannot redeclare block-scoped variable 'O_NOFOLLOW'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2913:22
          TS2451: Cannot redeclare block-scoped variable 'O_SYNC'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2916:22
          TS2451: Cannot redeclare block-scoped variable 'O_SYMLINK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2919:22
          TS2451: Cannot redeclare block-scoped variable 'O_DIRECT'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2922:22
          TS2451: Cannot redeclare block-scoped variable 'O_NONBLOCK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2927:22
          TS2451: Cannot redeclare block-scoped variable 'S_IFMT'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2930:22
          TS2451: Cannot redeclare block-scoped variable 'S_IFREG'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2933:22
          TS2451: Cannot redeclare block-scoped variable 'S_IFDIR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2936:22
          TS2451: Cannot redeclare block-scoped variable 'S_IFCHR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2939:22
          TS2451: Cannot redeclare block-scoped variable 'S_IFBLK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2942:22
          TS2451: Cannot redeclare block-scoped variable 'S_IFIFO'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2945:22
          TS2451: Cannot redeclare block-scoped variable 'S_IFLNK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2948:22
          TS2451: Cannot redeclare block-scoped variable 'S_IFSOCK'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2953:22
          TS2451: Cannot redeclare block-scoped variable 'S_IRWXU'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2956:22
          TS2451: Cannot redeclare block-scoped variable 'S_IRUSR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2959:22
          TS2451: Cannot redeclare block-scoped variable 'S_IWUSR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2962:22
          TS2451: Cannot redeclare block-scoped variable 'S_IXUSR'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2965:22
          TS2451: Cannot redeclare block-scoped variable 'S_IRWXG'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2968:22
          TS2451: Cannot redeclare block-scoped variable 'S_IRGRP'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2971:22
          TS2451: Cannot redeclare block-scoped variable 'S_IWGRP'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2974:22
          TS2451: Cannot redeclare block-scoped variable 'S_IXGRP'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2977:22
          TS2451: Cannot redeclare block-scoped variable 'S_IRWXO'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2980:22
          TS2451: Cannot redeclare block-scoped variable 'S_IROTH'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2983:22
          TS2451: Cannot redeclare block-scoped variable 'S_IWOTH'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:2986:22
          TS2451: Cannot redeclare block-scoped variable 'S_IXOTH'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:3229:18
          TS2300: Duplicate identifier 'TLSSocket'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:3596:10
          TS2300: Duplicate identifier 'Utf8AsciiLatin1Encoding'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:3597:10
          TS2300: Duplicate identifier 'HexBase64Latin1Encoding'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:3598:10
          TS2300: Duplicate identifier 'Utf8AsciiBinaryEncoding'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:3599:10
          TS2300: Duplicate identifier 'HexBase64BinaryEncoding'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:3600:10
          TS2300: Duplicate identifier 'ECDHKeyFormat'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:3946:5
          TS2300: Duplicate identifier 'export='.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:3957:16
          TS2300: Duplicate identifier 'inspect'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:4037:5
          TS2300: Duplicate identifier 'export='.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:4059:18
          TS2300: Duplicate identifier 'Domain'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:4351:5
          TS2300: Duplicate identifier 'export='.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:4364:10
          TS2300: Duplicate identifier 'DoesZapCodeSpaceFlag'.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:4393:5
          TS2300: Duplicate identifier 'export='.
      ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:4440:18
          TS2300: Duplicate identifier 'Protocol'.
      ERROR in [at-loader] ./obj/Host/node_modules/@types/node/index.d.ts:119:6
          TS2300: Duplicate identifier 'BufferEncoding'.
      ERROR in [at-loader] ./obj/Host/node_modules/@types/node/index.d.ts:290:18
          TS2300: Duplicate identifier 'EventEmitter'.
      ERROR in [at-loader] ./obj/Host/node_modules/@types/node/index.d.ts:372:10
          TS2300: Duplicate identifier 'Platform'.
      ERROR in [at-loader] ./obj/Host/node_modules/@types/node/index.d.ts:604:9
          TS2502: 'BuffType' is referenced directly or indirectly in its own type annotation.
      ERROR in [at-loader] ./obj/Host/node_modules/@types/node/index.d.ts:605:9
          TS2502: 'SlowBuffType' is referenced directly or indirectly in its own type annotation.

0 个答案:

没有答案