You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 After updating Blaze from 2.7.1 to 2.8.0 in our Meteor (v2.14) app, we got Cannot convert undefined or null to object error in waitForAllAttributesAndContinue function (ref):
In our case it happens when an HTML element has only one attribute and it's value is calculated by a Template helper function that returns undefined.
Steps to reproduce
Create a Blaze app with command: meteor create --blaze simple-todos-blaze --prototype
Add disabled helper to hello Template in main.js module:
The issue actually comes from Blaze._expandAttributes which should return and empty Object, instead of null, when no atts were found to be expandable. Otherwise multiple functions will fail (including waitForAllAttributesAndContinue)
Edit: note the issue only occurs when the element has computed atts but no other atts being set. For example, <button title="foo" {{disabled}}>Click Me</button> would not cause the error.
Summary
👋 After updating Blaze from 2.7.1 to 2.8.0 in our Meteor (v2.14) app, we got
Cannot convert undefined or null to object
error inwaitForAllAttributesAndContinue
function (ref):In our case it happens when an HTML element has only one attribute and it's value is calculated by a Template helper function that returns
undefined
.Steps to reproduce
meteor create --blaze simple-todos-blaze --prototype
disabled
helper tohello
Template inmain.js
module:disabled
attribute tobutton
element inhello
Template inmain.html
module:Actual behaviour
The app crashes in browser with the described error
Expected behaviour
The element should be rendered with no attributes
The text was updated successfully, but these errors were encountered: