-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function calls are not supported in decorators but 'ConfigModule' was called. #163
Comments
The same error in prod build |
This issue is resolved by updating the
When you build a lib with ivy the cli gives you a warning.
Would push up a PR but i don't have permission. |
PR Created, first PR on an open source repo so bare with me 😅 |
Any news about this issue/PR ? I have the same problem. Regards |
I have the same problem when I run "ng xi18n" (while ng build is fine): ERROR in Error during template compile of 'AppModule' |
see #169 |
I'm submitting a ... (check one with "x")
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
The text was updated successfully, but these errors were encountered: