Webpack: how to solve 'Function calls are not supported'


#1

I’m running into the same which described in:

http://stackoverflow.com/questions/41245263/webpack-aot-cannot-use-functions

Summary: some plugin need something like:

TNSFontIconModule.forRoot({
‘fa’: ‘font-awesome.css’
})

But this raises errors like: Calling function ‘TNSFontIconModule’, function calls are not supported.

But I don’t how to fix this. Does anyone have a suggestion? I would be happy to spend some time fixing it (and give it back to the community ) but right now I don’t have a clue.

thanks!

Bronco