Closed Aaron-Hu closed 2 years ago
Seems link "yarn build" will convert assert(from === to);
to assert_1.default(from === to);
The original code:
const { from, to } = state.selection;
assert(from === to);
The code after build:
const { from, to } = state.selection;
assert_1.default(from === to);
@Aaron-Hu to confirm this is in your own app? You can't reproduce in the storybook demo?
@tommoor yes, i am using it with yarn add rich-markdown-editor
and can't reproduce in the storybook demo.
You should find this resolved in v11.18.12
To Reproduce
this error may cause the page crush