question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compilation error in ng2 app: Calling function 'ApplicationInsightsModule', function calls are not supported

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
aguerotcommented, Mar 29, 2017

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

0reactions
MarkPieszakcommented, Mar 29, 2017

That’s great!! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 6 - 'Function calls are not supported in decorators ...
ERROR in src\app\app.module.ts(26,17): Error during template compile of 'AppModule' Function expressions are not supported in decorators in ...
Read more >
Issue: Function calls are not supported. Consider replacing ...
Hi All, I am trying to use the module in my web app but getting following issue again and again. ERROR in Error...
Read more >
AOT metadata errors - Angular
Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function. The compiler does not currently...
Read more >
Solving AOT Error in NgRx: Function calls are not supported in ...
ERROR in src/app/app.module.ts(33,25): Error during template compile of 'AppModule' Function calls are not supported in decorators but 'createAction' was ...
Read more >
Building Angular 6 library fails, with a vague error.
BUILD ERROR. Error during template compile of 'Injectable'. Function calls are not supported in decorators but 'ɵmakeDecorator' was called.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found