angular 前端项目 build 时报下面的错误,请问如何解决?
yarn run v1.19.2
$ ng build --prod
✔ Browser application bundle generation complete.
⠋ Generating ES5 bundles for differential loading...An unhandled exception occurred: Cannot find module 'levenary'
Require stack:
- /node_modules/@angular-devkit/build-angular/node_modules/@babel/preset-env/lib/normalize-options.js
- /node_modules/@angular-devkit/build-angular/node_modules/@babel/preset-env/lib/index.js
- /node_modules/@angular-devkit/build-angular/node_modules/@babel/core/lib/config/files/plugins.js
- /node_modules/@angular-devkit/build-angular/node_modules/@babel/core/lib/config/files/index.js
- /node_modules/@angular-devkit/build-angular/node_modules/@babel/core/lib/index.js
- /node_modules/@angular-devkit/build-angular/src/utils/process-bundle.js
- /node_modules/@angular-devkit/build-angular/node_modules/jest-worker/build/workers/processChild.js
相关问题
- Angular RxJS mergeMap types
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- How to update placeholder text in ng2-smart-table?
- How to instantiate Http service in main.ts manuall
- Angular: ngc or tsc?
相关文章
- angular脚手架在ie9+下兼容问题
- angular 前端项目 build 报错 "Cannot find module 'le
- Angular Material Stepper causes mat-formfield to v
- After upgrade to Angular 9 cannot find variable in
- is there any difference between import { Observabl
- Suppress “Circular dependency detected” suppress w
- How can you get current positional information abo
- Angular material table not showing data
删除
node_modules
文件夹后重新 build 解决了