The adf-content-metadata-card component gives an error in ADF 2.5 and 2.6, I get the error after generating a new ADF app with Yeoman, opening a document preview, opening the 'info' sidebar and selecting 'Properties'.
The error message that I get:
It seems to be an error on the mat-expansion-panel-header tag in the contentMetadata component html. Does this have to do with the version of Angular Material used (6.4.3)?
Hi which is your configuration in the app.config.json for the metadata?
Hi Eugenio,
My app.config.json doesn't have a specific metadata configuration.
Except for the ecmHost & application name I didn't change any of it.
app.config.json |
---|
{ |
you could maybe experience this bug [ADF-3609 ] fallback for metadata and undefined value check by magemello · Pull Request #3838 · Alfr... we didn't' merge yet the PR but the workaround, for now, could just add a default configuration for the metadata component like:
"content-metadata": {
"presets": {
"default": "*"
}
}
Hi Eugenio,
Adding those lines to my app.conf.json doesn't change anything for me.
I am not able to replicate the problem with the 2.6.2 generator can you try this version ?
The problem seems to be fixed in the 2.6.2 generator.
I will compare the generated code to my current source code to see if I can fix it.
I finally solved it by changing the versions of material, cdk and material-moment-adapter from 6.4.3 to 6.4.7.
I still have no idea why the error occured. The generated code works fine with 6.4.3 versions of the modules.
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.