-
Notifications
You must be signed in to change notification settings - Fork 31
Description
I'm submitting a ... (check one with "x")
[x ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report <!-- Please check the repository for a similar issue or PR before submitting -->
[ ] Support request => <!-- Please check the repository for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
Current behavior
export function configLoaderFactory(http: HttpClient): ConfigLoader {
const endpoint =./assets/configuration/config.json;
return new ConfigHttpLoader(http, endpoint);
}
@NgModule({
imports: [
ConfigModule.forRoot({
provide: ConfigLoader,
useFactory: configLoaderFactory,
deps: [HttpClient]
})
],...
This code causes the following error, when I try to update angular version to 9.
Error: error TS100: Error during template compile of 'AppConfigModule'
Function calls are not supported in decorators but 'ConfigModule' was called.
Any idea?
Expected/desired behavior
I should not cause an error.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
- Angular version: 9.1.6
- ngx-config/core version: 9.0.0
- Browser:
- Chrome (desktop) version XX
- Chrome (Android) version XX
- Chrome (iOS) version XX
- Firefox version XX
- Safari (desktop) version XX
- Safari (iOS) version XX
- IE version XX
- Edge version XX
- For Tooling issues:
- Node version: 12.16.1
- Platform: Mac
- Others: