AOT Build : how setup function can be called in NbAuthModule.forRoot ?
- 主要语言
- TypeScript
- 星标
- 8.1k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
I'm sorry to post this but I'm really stuck and I need to understand why. So it's not an issue, I just need help like a SOS...
I've used nebular auth strategie code to create my own system of clients consumer strategies (it could be restClient, GraphQL Client, SoapClient...). In my forRoot function in app.module of my module, I've got a setup function totally similar as Nebular auth to initialize my clients BUT I have an error when I build with aot flag :
> typescript error Error during template compile of 'AppModule' Function calls are not supported in decorators but 'Client' was called.
The weird part is coming... If I use Nebular auth strategie alone in my app.module, everything works perfectly with aot flag. I add my module after nebular auth and It doesn't work ! So I would like to understand why it works with Nebular module and not with my own module.
Here more information about my problem : https://stackoverflow.com/questions/55125982/aot-build-error-function-calls-are-not-supported-in-decorators
Thank you very much for your help !!!
贡献指南
评估
这个 Issue 还没有评估数据。