angular2-prettyjson icon indicating copy to clipboard operation
angular2-prettyjson copied to clipboard

About firstly failed to compile

Open huanyingbazhe opened this issue 8 years ago • 1 comments

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.

huanyingbazhe avatar Aug 22 '17 01:08 huanyingbazhe

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

matiboy avatar Nov 28 '17 00:11 matiboy