AOT build error: Calling function 'TabsModule', function calls are not supported
See original GitHub issueStarting 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:
- Created 6 years ago
- Comments:17 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
Sorry