creativetimofficial / ct-material-dashboard-pro-angular

68 stars 35 forks source link

AOT Builds still failing after upgrading angular-cli #46

Closed ChrisBurch closed 7 years ago

ChrisBurch commented 7 years ago

Hi there,

I'm still getting build failures when using AOT, after upgrading angular-cli by following these steps: https://github.com/angular/angular-cli#updating-angular-cli

I run ng build --prod, and I get the error:

ERROR in /path/to/app/src/$$_gendir/app/forms/wizard/wizard.component.ngfactory.ts (45,9): Supplied parameters do not match any signature of call target.

Any idea what I'm doing wrong?

Thanks, Chris

$ ng --version
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.2.7
node: 6.9.1
os: darwin x64
@angular/common: 2.4.10
@angular/compiler: 2.4.10
@angular/core: 2.4.10
@angular/forms: 2.4.10
@angular/http: 2.4.10
@angular/platform-browser: 2.4.10
@angular/platform-browser-dynamic: 2.4.10
@angular/router: 3.4.10
@angular/cli: 1.2.7
@angular/compiler-cli: 2.4.10
ChrisBurch commented 7 years ago

We ended up upgrading to angular4 (and removing the forms/wizard bits from the template), and got AOT builds working

$ ng --version
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.2.7
node: 6.9.1
os: darwin x64
@angular/common: 4.3.3
@angular/compiler: 4.3.3
@angular/core: 4.3.3
@angular/forms: 4.3.3
@angular/http: 4.3.3
@angular/platform-browser: 4.3.3
@angular/platform-browser-dynamic: 4.3.3
@angular/router: 4.3.3
@angular/cli: 1.2.7
@angular/compiler-cli: 4.3.3