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

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

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

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

+1 same kind of error with BsDropdownModule

Hi there. Any hint on this? Is there any way I can help?

Thank you

this is most annoying kind of issues, cuz it works fine with angular-cli