New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After the upgrade to v6, model is undefined in expressionProperties #3667
Comments
Hi, I think its related to default value (https://formly.dev/docs/guide/migration#2-defaultvalue-for-fieldgroup-and-fieldarray-type). Could you please check if the following solution can your issue: FormlyModule.forRoot({
types: [
{
name: 'formly-group',
defaultOptions: {
defaultValue: {}
}
}
],
}) |
Even after setting the above in module imports, I'm still getting the same error. Everything was perfect before the upgrade, it was working perfectly fine. |
Upgrading into a new major version imply some changes that may break some apps and that's totally normal, if you can provide a reproduction it may help us to provide some guidance on how to fix the issue on your side. You may check if its related to the following bug: #3664 |
It's really difficult to provide the exact replication of what we built in our project. We created many custom types and controls on top of ngx-formly. But I can explain how our model is and how our configuration looks like. The configuration is something like below.
And the model will be like this,
But since the upgrade, the |
The issue is related to the defaultValue which is set to undefined in Anyway will provide a potential fix at the end of week and I hope it'll solve your issue as well. |
Already tried 3667 (comment) Anyway, will wait for the update / fix. |
This issue has been fixed and released as part of v6.1.5 release. Please let us know, in case you are still encountering a similar issue/problem. |
Afte upgraded to v6, it's breaking a lot of things.
'model' is undefined in expressionProperties, hideExpression. Everything was fine before the upgrade.
Can't do this anymore. Most of the times the 'model' is undefined and hence getting this kind of error.
The text was updated successfully, but these errors were encountered: