react-md-editor
react-md-editor copied to clipboard
Does not allow application to compile
Error Message
node_modules/@uiw/react-md-editor/lib/cjs/index.d.ts(4,1):
Declaration or statement expected. TS1128
2 | import * as commands from './commands';
3 | import * as MarkdownUtil from './utils/markdownUtils';
> 4 | export type { ICommand, CommandOrchestrator, TextRange, TextState, TextApi } from './commands';
| ^
5 | export type { TextSection } from './utils/markdownUtils';
6 | export * from './Editor';
7 | export { MarkdownUtil, commands, };
All I have done is yarn add @uiw/react-md-editor and that is the error it kicks back. Not quite sure what would cause it to explode though.
Looks like it may have been one of my dependencies as I updated React, React-DOM, typescript and that resolved the issue.