Skip to content

Instantly share code, notes, and snippets.

@anirudhjain75
Created June 16, 2019 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anirudhjain75/a3d49412a20d259370d57ca18e68d201 to your computer and use it in GitHub Desktop.
Save anirudhjain75/a3d49412a20d259370d57ca18e68d201 to your computer and use it in GitHub Desktop.
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ root/entity/alias/EditForm.js:93:33
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.
• number [3] is incompatible with string [4] in property value.
• string [5] is incompatible with number [6] in property value.
root/entity/alias/EditForm.js
90│ entityType={entityType}
91│ field={state.aliasName}
92│ onChangeInput={(e) => {
93│ return setState({
94│ ...state,
95│ aliasName: {
96│ ...state.aliasName,
97│ value: e.target.value,
98│ },
99│ });
100│ }}
101│ onPressGuessCaseOptions={() => {
102│ const $ = require('jquery');
root/types.js
[2] 481│ errors: Array<string>,
:
[1] 493│ +errors: $ReadOnlyArray<string>,
root/components/FormRowNameWithGuesscase.js
[4] 21│ locale: FieldT<string>,
22│ sortName: FieldT<string>,
[6] 23│ type: FieldT<number>,
root/components/FormRowSelect.js
[3][5] 21│ +field: ReadOnlyFieldT<number | string>,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment