uiwjs / react-md-editor

A simple markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-md-editor
MIT License
2.17k stars 156 forks source link

Does not allow application to compile #77

Closed zwk5004 closed 3 years ago

zwk5004 commented 3 years ago

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.

zwk5004 commented 3 years ago

Looks like it may have been one of my dependencies as I updated React, React-DOM, typescript and that resolved the issue.