formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.23k stars 406 forks source link

TypeError: Cannot read property '$modelValue' of undefined #731

Closed laterbreh closed 7 years ago

laterbreh commented 7 years ago

Hello, I am not sure if this is the right place to post this, but I have an issue that's driving me crazy.

I am just trying to match two fields for password, and once I start typing into the fields I get the following error: 'TypeError: Cannot read property '$modelValue' of undefined'

I am using webpack and angular 1.6.1, and the latest formly lib and bootstrap. Formly works great on every other page I have created without issue. This is only happening when I am trying to match two fields.

I did an exact copy paste of the examples code (minus the script includes as I have bundled them into the final js file with webpack), and this error keeps coming up in the console.

Can anyone lend any idea as to what the issue may be? If you need more information ill be happy to post more here.

Thank you in advance.

laterbreh commented 7 years ago

I was able to resolve this thanks to the example that was posted in #533

For the life of me I couldn't get it to work with the documentations example. But using @yahyaKacem 's example that he posted I was able to get it working without issue.

Sorry for polluting the issues here on GH.

Thanks you for this wonderful plugin.