Create link with '/' command will cause Uncaught TypeError: assert_1.default is not a function
Aaron-Hu opened this issue · comments
Aaron-Hu commented
Aaron-Hu commented
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);
Tom Moor commented
@Aaron-Hu to confirm this is in your own app? You can't reproduce in the storybook demo?
Aaron-Hu commented
@tommoor yes, i am using it with yarn add rich-markdown-editor
and can't reproduce in the storybook demo.
Tom Moor commented
You should find this resolved in v11.18.12