Compilation error in ng2 app: Calling function 'ApplicationInsightsModule', function calls are not supported
See original GitHub issueHi,
I am facing a compilation issue today. he exact same code was compiling fine last week.
Here is the offending line in my app.module.ts as per the TS compiler:
import { ApplicationInsightsModule } from '@markpieszak/ng-application-insights'; ... imports: [ ... ApplicationInsightsModule.forRoot({ appID: <myid>, appName: <myproj> }) ],
Here is the compiler error:
ERROR in Error encountered resolving symbol values statically. Calling function 'ApplicationInsightsModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function
Is there a new way to initialize the AppInsights module? I am running off 1.0.0-rc.0 version.
Update: I am using Angular CLI 1.0.0-rc.2 to compile
Rgds
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
I’ve updated to 1.0.0-rc.1. Works like a charm! Thanks for getting this fixed that quickly, really appreciate. @viperguynaz, your updates are really nice as well Keep up the good work guys
That’s great!! 😃