Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
- ABP Framework version: v3.0.4
- UI type: Angular
- Tiered (MVC) or Identity Server Seperated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:
Note able to build and compile anular app. Please help on below warning and error.
[root@ip-172-31-6-224 angular]# yarn build:prod yarn run v1.22.5 $ ng build --configuration production Warning: Entry point '@volo/abp.ng.theme.lepton' contains deep imports into '/root/core-platform/SCV.Litmus/angular/node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton1', '/root/core-platform/SCV.Litmus/angular/node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton2', '/root/core-platform/SCV.Litmus/angular/node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton3', '/root/core-platform/SCV.Litmus/angular/node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton4', '/root/core-platform/SCV.Litmus/angular/node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton5', '/root/core-platform/SCV.Litmus/angular/node_modules/@volo/abp.ng.theme.lepton/dist/global/styles/lepton6'. This is probably not a problem, but may cause the compilation of entry points to be out of order. Compiling @angular/core : es2015 as esm2015
[root@ip-172-31-6-224 ng-FVe2rC]# cat angular-errors.log [error] Error: NGCC failed. at NgccProcessor.process (/root/core-platform/SCV.Litmus/angular/node_modules/@ngtools/webpack/src/ngcc_processor.js:69:19) at /root/core-platform/SCV.Litmus/angular/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:579:31 at SyncHook.eval [as call] (eval at create (/root/core-platform/SCV.Litmus/angular/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1) at SyncHook.lazyCompileHook (/root/core-platform/SCV.Litmus/angular/node_modules/tapable/lib/Hook.js:154:20) at Object.webpack [as webpackFactory] (/root/core-platform/SCV.Litmus/angular/node_modules/webpack/lib/webpack.js:55:30) at createWebpack (/root/core-platform/SCV.Litmus/angular/node_modules/@angular-devkit/build-webpack/src/webpack/index.js:20:36) at Object.runWebpack (/root/core-platform/SCV.Litmus/angular/node_modules/@angular-devkit/build-webpack/src/webpack/index.js:34:12) at SwitchMapSubscriber.project (/root/core-platform/SCV.Litmus/angular/node_modules/@angular-devkit/build-angular/src/browser/index.js:142:32) at SwitchMapSubscriber._next (/root/core-platform/SCV.Litmus/angular/node_modules/rxjs/internal/operators/switchMap.js:49:27) at SwitchMapSubscriber.Subscriber.next (/root/core-platform/SCV.Litmus/angular/node_modules/rxjs/internal/Subscriber.js:66:18) at /root/core-platform/SCV.Litmus/angular/node_modules/rxjs/internal/util/subscribeToPromise.js:7:24
3 Answer(s)
-
0
Hi vishalnikam,
The warning about Lepton is not the problem. It does not break the build or your app.
The error is from Angular compatibility compiler, a.k.a. ngcc. From the log, it looks like, ngcc could not compile Angular packages. Updating Angular may help. Therefore, I suggest two things:
- Remove node modules and yarn.lock, install packages, and try to get a build again.
- If that does not work, consider upgrading to latest stable release of ABP.
Please let me know if this solves the issue for you.
Have a nice day.
-
0
Hi vishalnikam,
Is the issue solved?
Thanks. Have a nice week.
-
0
Hi vishalnikam,
I am closing the issue due to inactivity. Please reopen it if the problem continues.
Have a nice day.