While building production files, the aot
process is failing with this error message:
Function calls are not supported in decorators but 'CountdownTimerModule' was called.
I run the build command using npm run build -- --prod --aot
and encounter this issue.
Upon inspecting the component causing the problem, it is structured like this:
@NgModule({
imports: [
ThemeModule,
CountdownTimerModule.forRoot(),
],
declarations: [
Component
],
providers: [Service]
})
How can I resolve this declaration error and still make use of the countdown timer module?