I searched for the string "allComponents.filter" from the error and, I guess that you are aware, this is in your Radzen code index.js. So it would appear that something in my code is tripping up your parser, what am I looking for?
OK. I have found the file causing the issue, it is my modified Main layout. This was not causing a problem before the upgrade however.
I renamed my json layouts uploaded previously - main.json --> mhmain.json and origmain.json --> main.json
Now the error does not appear when the pages use the original main template. The error does still appear for my modified template which has not been changed for a long time and has never been a problem before.
The error is being caused by a null style entry - "style": {},
I'm not sure how that got there or why it is suddenly an issue but removing this clears up the error
I am now finding "style": {}, all over my files which is causing more problems. Where did it come from and why is it only a problem in the latest release?
I'm afraid that I'm not sure what can insert an empty component without type. Check your source control to see when these empty components where added.
But it even appears in my application-role.json whihc was autogenerated by Radzen at the start of the project...
"type": "row"
}
],
"container": "main",
"type": "content"
},
{
"style": {}
},
{
"style": {}
}
],
"events": {
"load": [
{
"name": "Security.getRoles",
I agree, looking back in version control it was not there on first checkin. It seemed to happen to this file sometime between adding default authentication and adding page security - both done through the Radzen design tool.
We will release later today fix that will handle the code generation error in case of such empty components. If you can reproduce whatβs causing the insertion of an empty component let us know.
Thanks. The empty component happened again whislt editing an existing page. I changed an image url from assets/images to /assets/images and this process seemed to trigger the empty component but I tried this again and tried on a new blank page and could not replicate the issue.
(the reason for having the url as relative path is for hosting in a subdirectory /mh/pages)
Hi,
I have run into a second problem that coincides with the update. I have a master/detail datagrid and now the class definition for all the datagridds in the templates do not get generated in designer.cs
The master grid gets defined and has a @ref in the html but the template child datagrids do not have @ref or a definition in designer.cs. This was working before the update.