Question

Create Angular component

Hello,

I followed this article to add Angular component, but failed to build it.

https://academy.creatio.com/documents/technic-sdk/7-16/creating-angular…

 

My window.ng.core.VERSION.major = 9 (Creation 7.16.3). So I tried @angular/cli@9. But it seems that ngx-build-plus doesn't support Angular 9 yet.

$ yarn build:my-app:externals
Unknown option: '--extra-webpack-config'
Unknown option: 'webpack.externals.js'
Unknown option: '--single-bundle'
error Command failed with exit code 1.

Thanks.

Like 0

Like

2 comments

I tried ngx-build-plus@~9 and it works now.

Van Ly,

 

Nice to know that! Yes, you are correct, Creatio uses Angular 9, so here is the package you can use for the 9th version: https://www.npmjs.com/package/ngx-build-plus/v/9.0.6

 

As well as, please make sure that you've indicated the proper build in the "angular.json" file. 

 

Regards,

Anastasiia

Show all comments