Open e-cloud opened 7 years ago
I think I have the same kind of errors:
export const FORMLY_CONFIG: ConfigOption = {
types: [
{
name: 'nrn-field',
extends: 'input-mask-field',
defaultOptions: {
templateOptions: {
maskConfig: {
mask: [/\d/], // --> Error on this line, work in JIT
showMask: false,
guide: true,
placeholderChar: '_'
},
required: true
}
}
}
]
};
Error:
ERROR in ..\..\..\libs\person\src\formly\formly-person.module.ts(9,56): Error during template compile of 'PersonFormlyModule'
Expression form not supported in 'FORMLY_CONFIG'
'FORMLY_CONFIG' contains the error at ..\..\..\libs\person\src\formly\formly-person.config.ts(16,20).