About firstly failed to compile
Hello: When I first 'ng serve' my project, I encounter a problem. The message is below:
ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 194:50 in the original .ts file), resolving symbol NgModule in E:/project/gss/oversee/ngOversee/node_modules/angular2-prettyjson/node_modules/@angular/core/core.d.ts, resolving symbol PrettyJsonModule in E:/project/g ss/oversee/ngOversee/node_modules/angular2-prettyjson/src/prettyjson.module.d.ts, resolving symbol PrettyJsonModule in E:/project/gss/oversee/ngOversee/node_modules/angular2-prettyjson/src/prettyjson.mod ule.d.ts
.
I use angular 4.
And then, when I save in any file, the problem disappears.
Thank you.
Thanks for reporting this issue. Seems to be related to a whole bunch of AOT issues as mentioned here https://github.com/angular/angular-cli/issues/4956
I'll try and "replacing the function or lambda with a reference to an exported function" but anyone has an easy way to reproduce the issue, or a public repo which has that issue?
Thanks