Skip to content
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

production build fails #238

Closed
3 tasks done
Igor2122 opened this issue Mar 11, 2021 · 3 comments
Closed
3 tasks done

production build fails #238

Igor2122 opened this issue Mar 11, 2021 · 3 comments

Comments

@Igor2122
Copy link

Checklist

During production build, getting below error

``./node_modules/mui-rte/src/MUIRichTextEditor.tsx:1017:32
Type error: Argument of type 'KeyboardEvent<{}>' is not assignable to parameter of type 'SyntheticKeyboardEvent'.
Property 'code' is missing in type 'React.KeyboardEvent<{}>' but required in type 'import("/Users/igorpavlneko/Desktop/prj/pexpats_f_e/node_modules/@types/react-dom/node_modules/@types/react/index").KeyboardEvent<{}>'.

1015 |
1016 | const keyBindingFn = (e: React.KeyboardEvent<{}>): string | null => {

1017 | if (hasCommandModifier(e) && props.keyCommands) {
| ^
1018 | const comm = props.keyCommands.find(comm => comm.key === e.keyCode)
1019 | if (comm) {
1020 | return comm.name
error Command failed with exit code 1.

@vilanz
Copy link

vilanz commented Mar 15, 2021

There's a workaround in #230

But the proper solution would be #206, which was closed for some reason

@TrejGun
Copy link

TrejGun commented Mar 16, 2021

it was cloed because this repository seems to be dead now and our company forked it and going to maintain
for example we have fixed nested lists

@niuware
Copy link
Owner

niuware commented Mar 21, 2021

@vilanz This is fixed in version 1.28.0.

@niuware niuware closed this as completed Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants