小编Sah*_*toa的帖子

错误 TS2563:包含的函数或模块主体太大,无法进行控制流分析

我在 Angular 项目中升级了我的 package.json 。迁移是从 Angular 6 到 7 完成的。当我尝试构建时,我在控制台中看到了这个错误。

错误 TS2563:包含的函数或模块主体太大,无法进行控制流分析。

这是我的新 package.json

{
  "name": "e-case-prototype",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng serve --proxy-config proxy.conf.json --source-map=false",
    "build": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build",
    "build-prod": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod",
    "build-prod-aot-disabled": "node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod --aot false --build-optimizer false",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular-devkit/build-angular": "^0.13.9",
    "@angular/animations": "7.2.15",
    "@angular/cdk": "7.3.7",
    "@angular/common": "7.2.15",
    "@angular/compiler": "7.2.15",
    "@angular/core": "7.2.15", …
Run Code Online (Sandbox Code Playgroud)

typescript angular angular6 angular7

6
推荐指数
1
解决办法
3446
查看次数

标签 统计

angular ×1

angular6 ×1

angular7 ×1

typescript ×1