Angular 离子电容器构建产品:TypeError 无法读取未定义的 'updateClassDeclaration' 中的 属性
Angular Ionic Capacitor build prod: TypeError Cannot read property of 'updateClassDeclaration' of undefined
大约 15 分钟前我没有收到此错误,但在 运行 npx audit fix --force
之后,当我的离子电容器项目 运行 npm run build
时出现此错误:
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
谢谢。
Welp,修复失败。我在备份文件夹中恢复到其原始状态并且没有使用 npx audit fix --force
命令。请务必始终备份您的重要项目文件!
大约 15 分钟前我没有收到此错误,但在 运行 npx audit fix --force
之后,当我的离子电容器项目 运行 npm run build
时出现此错误:
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
谢谢。
Welp,修复失败。我在备份文件夹中恢复到其原始状态并且没有使用 npx audit fix --force
命令。请务必始终备份您的重要项目文件!