I have the classes....
export class CustomField extends GenericField {
@observable customProperty
}
class GenericField {
@observable genericProperty
}
I ran the codemod to upgrade Mobx as per..... https://mobx.js.org/migrating-from-4-or-5.html
The codemod simply added
constructor() {
makeObservable(this);
}
To the base class (not the child class) and came up with the error:
/src/CustomField.ts Transformation error (Cannot read property 'start' of null) TypeError: Cannot read property 'start' of null
I am unsure of what to do next? The documentation is not clear in this regard https://mobx.js.org/migrating-from-4-or-5.html#limitations-of-mobx-undecorate it says if base classes expect arguments the codemod will not work. But it doesn't expect anything.
If I run the codemod again it adds yet another call to makeObservable in the base class but nothing changes on the child.
Any ideas?