AOT Build : how setup function can be called in NbAuthModule.forRoot ?
- Linguagem predominante
- TypeScript
- Estrelas
- 8.1k
- Forks
- 1.5k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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 !!!
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.