The @observe decorator throws on this line when you define an element as shown below because obserever property cannot be found in.
export class ObserveMissing {
@observe
someObserver(noSuchProp) {
}
}
I was about to create a PR for this by simply throwing a more helpful error but I think that it's not actually correct. After all, it is also possible to observe properties only ever declared in the template. Such that never appear in properties: {}.
In this case the observer should be added to observers:
The
@observe
decorator throws on this line when you define an element as shown below because obserever property cannot be found in.I was about to create a PR for this by simply throwing a more helpful error but I think that it's not actually correct. After all, it is also possible to observe properties only ever declared in the template. Such that never appear in
properties: {}
.In this case the observer should be added to
observers
: