Cannot read property '_resolvedSchema' of undefined
See original GitHub issueI am getting the following error when updating a form. I’m not sure what’s going on. When i insert a document I don’t get any error, only when updating it.
Exception in template helper: TypeError: Cannot read property '_resolvedSchema' of undefined at Object.AutoForm.getFormSchema (http://localhost:3000/packages/aldeed_autoform.js?8a3a72752639b5186173691898c4ac267bd8d888:2943:14) at parseOptions (http://localhost:3000/packages/aldeed_autoform.js?8a3a72752639b5186173691898c4ac267bd8d888:1244:21) at Object.autoFormFieldNames (http://localhost:3000/packages/aldeed_autoform.js?8a3a72752639b5186173691898c4ac267bd8d888:1358:13) at bindDataContext (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2880:16) at Blaze._wrapCatchingExceptions (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1651:16) at http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2928:66 at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:3476:12) at wrapHelper (http://localhost:3000/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2927:27) at Spacebars.call (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:172:18) at Spacebars.mustacheImpl (http://localhost:3000/packages/spacebars.js?7bafbe05ec09b6bbb6a3b276537e4995ab298a2f:109:25)
Issue Analytics
- State:
- Created 8 years ago
- Comments:6
Top GitHub Comments
I’m running into the same problem
For anyone else having this issue and not having a duplicate form id in their DOM.
I found the problem occurring when I was using an if to show one of two forms, an insert form, or update form, with different options. Even though only one form was ever shown at a time, just having both forms with the same id in the template was enough to break everything.