trying to setup ngx-formly-material-file, but I got an error: Function calls are not supported in decorators but 'FileTypeModule' was called
I tried to export FileTypeModule, but got the same error
export const fileTypeModule = FileTypeModule.forRoot();
@NgModule({
imports: [fileTypeModule]
})
Have seen this happening many times, last time, with Angular 9, happened during ng build <my-library>
, for all modules that were initialized with forRoot
I added in tsconfig.lib.json
this and the error went away.
"angularCompilerOptions": {
"fullTemplateTypeCheck": true
}
The fullTemplateTypeCheck
compiler switch actually enables the binding expression validation phase of the template compiler. See more details here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With