-
Notifications
You must be signed in to change notification settings - Fork 10
Error build with angular-cli and Angular 4 #5
Description
Error with angular-cli and Angular 4:
ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol NgModule in ../node_modules/angular-material-datepicker/node_modules/@angular/core/src/metadata/ng_module.d.ts, resolving symbol NgModule in .../node_modules/angular-material-datepicker/node_modules/@angular/core/src/metadata.d.ts, resolving symbol NgModule in .../node_modules/angular-material-datepicker/node_modules/@angular/core/src/core.d.ts, resolving symbol NgModule in .../node_modules/angular-material-datepicker/node_modules/@angular/core/index.d.ts, resolving symbol DatePickerModule in .../node_modules/angular-material-datepicker/src/datepicker/datepicker.module.ts, resolving symbol DatePickerModule in .../node_modules/angular-material-datepicker/src/datepicker/datepicker.module.ts
ng --version
@angular/cli: 1.0.3
node: 6.10.2
os: linux x64
@angular/animations: 4.1.2
@angular/common: 4.1.2
@angular/compiler: 4.1.2
@angular/core: 4.1.2
@angular/flex-layout: 2.0.0-beta.8
@angular/forms: 4.1.2
@angular/http: 4.1.2
@angular/material: 2.0.0-beta.5
@angular/platform-browser: 4.1.2
@angular/platform-browser-dynamic: 4.1.2
@angular/router: 4.1.2
@angular/cli: 1.0.3
@angular/compiler-cli: 4.1.2
Maybe helpful links:
angular/angular-cli#3707
https://medium.com/@isaacplmann/making-your-angular-2-library-statically-analyzable-for-aot-e1c6f3ebedd5