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
Recently ran into a misused map definition: DefineMap constructor as lower-cased type along with instance of the DefineMap as value, which resulted into an unhelpful error. Lost a lot of time to figure out the misusing:
TypeError: Cannot read property 'definitions' of undefined
at Function.define.setup (http://localhost:8080/node_modules/can-define/can-define.js:697:32)
which makes sense since it does relate to types.
Expected: a message like: In your define map you should use Type on a property that is an instance of a DefineMap.
The text was updated successfully, but these errors were encountered:
Recently ran into a misused map definition: DefineMap constructor as lower-cased
type
along with instance of the DefineMap asvalue
, which resulted into an unhelpful error. Lost a lot of time to figure out the misusing:The error showing was:
which makes sense since it does relate to types.
Expected: a message like:
In your define map you should use Type on a property that is an instance of a DefineMap
.The text was updated successfully, but these errors were encountered: