-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type 'EditorState' is not assignable to type 'null' #133
Comments
Hi @claitonnazaret, I need more context for this but I am guessing this is related with your typescript configuration, although even with |
I pushed an update and this should be fixed on version |
Version 1.19.2 corrected the error Type 'EditorState' is not assignable to type 'null', but a new error appeared in the utils.ts file on line 24 that starts the entityType variable with null. When changing to '' the error is corrected according to the prints below: The line: Correction: Appreciate... |
Missed the second one you wrote on your comment. Should be fixed on version |
TypeScript error in G:/sgp/web-app/node_modules/mui-rte/src/MUIRichTextEditor.tsx(754,13):
Type 'EditorState' is not assignable to type 'null'. TS2322
in MUIRichTextEditor.tsx:747 change line let replaceEditorState = null; to let replaceEditorState;
in utils.ts:24 change line let entityType = null; to let entityType = '';
The text was updated successfully, but these errors were encountered: