MobX error codes
In development builds, MobX throws full error messages. Production builds replace known messages with short numeric codes to keep the published bundle smaller.
| Code | Message |
|---|---|
| 0 | Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed' |
| 1 | Cannot apply '{annotationType}' to '{key}': Field not found. |
| 5 | 'keys()' can only be used on observable objects, arrays, sets and maps |
| 6 | 'values()' can only be used on observable objects, arrays, sets and maps |
| 7 | 'entries()' can only be used on observable objects, arrays and maps |
| 8 | 'set()' can only be used on observable objects, arrays and maps |
| 9 | 'remove()' can only be used on observable objects, arrays and maps |
| 10 | 'has()' can only be used on observable objects, arrays and maps |
| 11 | 'get()' can only be used on observable objects, arrays and maps |
| 12 | Invalid annotation |
| 13 | Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable) |
| 14 | Intercept handlers should return nothing or a change object |
| 15 | Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable) |
| 16 | Modification exception: the internal structure of an observable array was changed. |
| 19 | Cannot initialize from classes that inherit from Map: {other} |
| 20 | Cannot initialize map from {other} |
| 21 | Cannot convert to map from '{dataStructure}' |
| 23 | It is not possible to get index atoms from arrays |
| 24 | Cannot obtain administration from {thing} |
| 25 | the entry '{property}' does not exist in the observable map '{name}' |
| 26 | please specify a property |
| 27 | no observable property '{property}' found on the observable object '{name}' |
| 28 | Cannot obtain atom from {thing} |
| 29 | Expecting some object |
| 30 | invalid action stack. did you forget to finish an action? |
| 31 | missing option for computed: get |
| 32 | Cycle detected in computation {name}: {derivation} |
| 33 | The setter of computed value '{name}' is trying to update itself. Did you intend to update an observable value, instead of the computed property? |
| 34 | [ComputedValue '{name}'] It is not possible to assign a new value to a computed value. |
| 35 | There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use configure({ isolateGlobalState: true }) |
| 36 | isolateGlobalState should be called before MobX is running any reactions |
| 37 | [mobx] observableArray.{method}() mutates the array in-place, which is not allowed inside a derivation. Use array.slice().{method}() instead |
| 38 | 'ownKeys()' can only be used on observable objects |
| 39 | 'defineProperty()' can only be used on observable objects |
| 40 | Out of range: {length} |
| 41 | Cannot initialize set from {other} |
| 42 | Invalid index: '{key}' |
| 43 | Cannot apply '{annotationType}' to '{name}' (kind: {kind}): '{annotationType}' can only be used on properties with a function value. |
| 44 | '{annotationType}' can only be used with 'makeObservable' |
