# How to get an error if a getter or field is missing?

**URL:** <https://discourse.aurelia.io/t/how-to-get-an-error-if-a-getter-or-field-is-missing/5472>\
**Category:** Help Requests\
**Created:** [June 25, 2024, 2:20pm UTC](https://discourse.aurelia.io/t/how-to-get-an-error-if-a-getter-or-field-is-missing/5472 "2024-06-25T14:20:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mberdev](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/mberdev/32/2529_2.png) [@mberdev](https://discourse.aurelia.io/u/mberdev)\
**Post date:** [June 25, 2024, 2:20pm UTC](https://discourse.aurelia.io/t/how-to-get-an-error-if-a-getter-or-field-is-missing/5472/1 "2024-06-25T14:20:16Z")

</div>

Here is a simple Aurelia class :

```auto
export class MyClass {

    @bindable public someValue: number;

    constructor( ) { }

    @computedFrom("someValue")
    get isPositive() {
        return someValue > 0;
    }

```

And the view :

```auto
<template>
            <div if.bind="isPositive"></div>
</template>

```

**How to make Aurelia report an error if “isPositive” does not exist?**  
At the moment, it will be confusingly and **silently** be turned into “false”. I will never know that something’s not working as it should just because I forgot the getter.

---

<div class="post-metadata">

**Author:** ![mberdev](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/mberdev/32/2529_2.png) [@mberdev](https://discourse.aurelia.io/u/mberdev)\
**Post date:** [June 27, 2024, 9:12am UTC](https://discourse.aurelia.io/t/how-to-get-an-error-if-a-getter-or-field-is-missing/5472/2 "2024-06-27T09:12:38Z")

</div>

Maybe I can try to work with coercion settings, as seen below this anchor : [Bindable properties | The Aurelia 2 Docs](https://docs.aurelia.io/components/bindable-properties#automatic-type-coercion)

At least I will get undefined instead of 0.
