Good day!
Began to start AoT for a hybrid.
Customized for the article https://angular-guru.com/blog/angular-webpack Initial configuration:
typescript 2.9.1
angular@7.0
angularjs@1.6
webpack @ 4
assembly goes through tsloader
Translated ts build to @ ngtools / webpack + AngularCompilerPlugin @ angular / compiler-cli @ 6.1, it works with typescript@2.9.1
Configuring AngularCompilerPlugin:
new AngularCompilerPlugin({ mainPath: path.join(__dirname, './src/app/app.ts'), sourceMap: false, nameLazyFiles: false, tsConfigPath: path.join(__dirname, './tsconfig.json'), skipCodeGeneration: false, }),
Began to catch typescript errors like:
src/app/common/directives/rating/index.ts(181,24): error TS2339: Property 'backColor' does not exist on type 'IScope'. src/app/common/directives/rating/index.ts(182,24): error TS2339: Property 'emptyBackColor' does not exist on type 'IScope'. src/app/common/directives/rating/index.ts(183,24): error TS2339: Property 'selColor' does not exist on type 'IScope'. src/app/common/directives/rating/index.ts(184,24): error TS2339: Property 'ratingDefine' does not exist on type 'IScope'. src/app/common/directives/rating/index.ts(187,28): error TS2339: Property 'ratingDefine' does not exist on type 'IScope'. src/app/common/directives/rating/index.ts(191,32): error TS2339: Property 'starsSelected' does not exist on type 'IScope'. src/app/common/directives/rating/index.ts(191,55): error TS2339: Property 'starsByPercent' does not exist on type 'IScope'. src/app/common/directives/rating/index.ts(191,77): error TS2339: Property 'howManyStars' does not exist on type 'IScope'.
When building through ts-loader there are none. there are a lot of them, there is no possibility to edit now Is it possible to make ngtools ignore them? Or the problem is something else?