dalyIsaac / onenote-markdown

https://onenote-markdown.azurewebsites.net/
MIT License
43 stars 2 forks source link

Error when I try to run dev build #74

Open yeeislazy opened 2 years ago

yeeislazy commented 2 years ago

when I run npm start in terminal, it show this

Failed to compile.

/Users/xxxxxxxx/onenote-markdown-prototype/src/globals.d.ts
TypeScript error in /Users/xxxxxx/onenote-markdown-prototype/src/globals.d.ts(4,12):
Subsequent property declarations must have the same type.  Property 'inputType' must be of type 'string', but here has type '"insertText" | "insertReplacementText" | "insertLineBreak" | "insertParagraph" | "insertOrderedList" | "insertUnorderedList" | "insertHorizontalRule" | "insertFromYank" | ... 37 more ... | "formatFontName"'.  TS2717

    2 |   readonly data: string | null;
    3 |   readonly dataTransfer: DataTransfer;
  > 4 |   readonly inputType:
      |            ^
    5 |   | "insertText"
    6 |   | "insertReplacementText"
    7 |   | "insertLineBreak"

also, when I try to cd onenote-markdown, it show flip not found because it is onenote-markdown-prototype on my Mac, I just change to cd onenote-markdown-prototype and it work