【问题标题】:Angular Ionic Capacitor build prod: TypeError Cannot read property of 'updateClassDeclaration' of undefinedAngular Ionic Capacitor build prod:TypeError 无法读取未定义的“updateClassDeclaration”的属性
【发布时间】:2021-06-28 16:03:12
【问题描述】:

大约 15 分钟前我没有收到此错误,但在我的 Ionic 电容器项目中运行 npx audit fix --force 后会出现此错误:

Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js):
TypeError: Cannot read property 'updateClassDeclaration' of undefined
    at visitNode

离子信息:

Ionic:

   Ionic CLI                     : 6.13.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.5.2
   @angular-devkit/build-angular : 0.1102.6
   @angular-devkit/schematics    : 10.2.3
   @angular/cli                  : 10.2.3
   @ionic/angular-toolkit        : 2.3.3

Capacitor:

   Capacitor CLI   : 2.4.5
   @capacitor/core : 2.4.5

Cordova:

   Cordova CLI       : 10.0.0
   Cordova Platforms : not available
   Cordova Plugins   : not available

Utility:

   cordova-res (update available: 0.15.3) : 0.15.2
   native-run (update available: 1.3.0)   : 0.2.8

System:

   NodeJS : v12.15.0 (/usr/local/bin/node)
   npm    : 7.6.3
   OS     : macOS Catalina

谢谢。

【问题讨论】:

    标签: angular ionic-framework typeerror capacitor


    【解决方案1】:

    Welp,修复失败了。我在备份文件夹中恢复到其原始状态并且没有使用npx audit fix --force 命令。请务必始终备份您的重要项目文件!

    【讨论】:

      猜你喜欢
      • 2020-01-13
      • 1970-01-01
      • 2021-08-01
      • 1970-01-01
      • 2020-08-10
      • 1970-01-01
      • 2020-01-12
      • 2018-08-16
      • 1970-01-01
      相关资源
      最近更新 更多