Angular 角离子电容器构建产品:TypeError无法读取';更新分类声明';未定义的
大约15分钟前,我没有收到此错误,但在运行Angular 角离子电容器构建产品:TypeError无法读取';更新分类声明';未定义的,angular,ionic-framework,typeerror,capacitor,Angular,Ionic Framework,Typeerror,Capacitor,大约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 'updateClassDeclarat
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
谢谢。好的,修理不好。我在备份文件夹中恢复到其原始状态,并且没有使用
npx audit fix--force
命令。确保始终备份重要的项目文件