Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ root/entity/alias/EditForm.js:190:23
Cannot call setState with object literal bound to the first parameter because:
• read-only array type [1] is incompatible with array type [2] in property
errors.
• string [3] is incompatible with number [4] in property value.
root/entity/alias/EditForm.js
185│ field={state.type}
186│ label={l('Type:')}
187│ // eslint-disable-next-line react/jsx-no-bind
188│ onChange={(e) => setState({
189│ ...state,
190│ type: {
191│ ...state.type,
192│ value: e.target.value,
193│ },
194│ })}
195│ options={formOptions(typeOptions)}
196│ />
197│ </fieldset>
root/types.js
[2] 481│ errors: Array<string>,
:
[1] 493│ +errors: $ReadOnlyArray<string>,
root/components/FormRowNameWithGuesscase.js
[4] 23│ type: FieldT<number>,
root/components/FormRowSelect.js
[3] 21│ +field: ReadOnlyFieldT<number | string>,