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.

AOT build error: Calling function 'TabsModule', function calls are not supported

See original GitHub issue

Starting from a working simple project with AOT building correctly: BrainCrumbz/ngtools-webpack-demo/. Just adding Bootstrap CSS stylesheet and registering TabsModule.forRoot() causes the following:

ERROR in Error encountered resolving symbol values statically. Calling function ‘TabsModule’, function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in D:/WS/JS/ngtools/ngtools-webpack-demo/src/app/module.ts, resolving symbol AppModule in D:/WS/JS/ngtools/ngtools-webpack-demo/src/app/module.ts

See this commit to see changes made and to repro issue.

Environment:

  • ngx-bootstrap 1.8.1
  • angular 4.3.4
  • ngtools/webpack 1.3.3
  • webpack 2.5.1
  • Win 10 x64

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
valorkincommented, Dec 13, 2017

Yeah, it happens, my favourite useless issue is: app module has an error resolving modules metadata And it fails with the link to first module, which usually is not a reason of an issue

1reaction
valorkincommented, Nov 13, 2017

Sorry

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get rid of Function calls are not supported in ...
ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'ChartModule' was called. Now, i know ...
Read more >
Solving AOT Error in NgRx: Function calls are not supported in ...
Problem. According to NgRx quick start guide, the following is code snippet of how we set up NgRx. export const counterReducer = createReducer(initialState,...
Read more >
angular/angular - Gitter
I build with ng build -aot -prod then run the closure compiler but it gives me errors (like variable foo is undeclared).
Read more >
sitemap.xml - Material Design for Bootstrap
... 2018-01-25T10:54:49+00:00 https://mdbootstrap.com/support/angular/init-re-init-mdb-by-function-call/ 2017-07-31T15:40:58+00:00 ...
Read more >
[Solved]-Function calls are not supported in decorator-angular.js
The Angular Ahead-of-Time (AOT) compiler converts your Angular HTML and TypeScript code into efficient JavaScript code during the build phase before the browser ......
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