ChiChou/grapefruit

Vue errors encountered - problem?

evandrix opened this issue · 1 comments

I'm on macOS 10.15.4, Node v12.16.3.

I tried npm i, followed by npm start, as instructed.

Although the webapp is able to start, the following errors are displayed - is it a problem? is there a patch/fix?

ERROR in /gui/src/views/tabs/UnknownPreview.vue(190,20):
190:20 Parameter 'valueIndex' implicitly has an 'any' type.
    188 |   }
    189 |
  > 190 |   handleValueClick(valueIndex, e) {
        |                    ^
    191 |     this.goToChar(valueIndex)
    192 |   }
    193 |

ERROR in /gui/src/views/tabs/UnknownPreview.vue(190,32):
190:32 Parameter 'e' implicitly has an 'any' type.
    188 |   }
    189 |
  > 190 |   handleValueClick(valueIndex, e) {
        |                                ^
    191 |     this.goToChar(valueIndex)
    192 |   }
    193 |

ERROR in /gui/src/views/tabs/UnknownPreview.vue(194,19):
194:19 Parameter 'lineIndex' implicitly has an 'any' type.
    192 |   }
    193 |
  > 194 |   handleLineClick(lineIndex, e) {
        |                   ^
    195 |     this.goToLineRelative(lineIndex)
    196 |   }
    197 |

ERROR in /gui/src/views/tabs/UnknownPreview.vue(194,30):
194:30 Parameter 'e' implicitly has an 'any' type.
    192 |   }
    193 |
  > 194 |   handleLineClick(lineIndex, e) {
        |                              ^
    195 |     this.goToLineRelative(lineIndex)
    196 |   }
    197 |

ERROR in /gui/src/views/tabs/UnknownPreview.vue(243,5):
243:5 No overload matches this call.
  Overload 1 of 2, '(type: "fullscreenchange" | "fullscreenerror", listener: (this: Element, ev: Event) => any, options?: boolean | AddEventLis
tenerOptions | undefined): void', gave the following error.
    Argument of type '"wheel"' is not assignable to parameter of type '"fullscreenchange" | "fullscreenerror"'.
  Overload 2 of 2, '(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void
', gave the following error.
    Argument of type '(e: WheelEvent) => void' is not assignable to parameter of type 'EventListenerOrEventListenerObject'.
      Type '(e: WheelEvent) => void' is not assignable to type 'EventListener'.
        Types of parameters 'e' and 'evt' are incompatible.
          Type 'Event' is missing the following properties from type 'WheelEvent': deltaMode, deltaX, deltaY, deltaZ, and 27 more.
    241 |       })
    242 |
  > 243 |     this.$el.addEventListener('wheel', this.handleWheel)
        |     ^
    244 |   }
    245 |
    246 |   beforeDestroy() {

ERROR in /gui/src/views/tabs/UnknownPreview.vue(247,5):
247:5 No overload matches this call.
  Overload 1 of 2, '(type: "fullscreenchange" | "fullscreenerror", listener: (this: Element, ev: Event) => any, options?: boolean | EventListenerOptions | undefined): void', gave the following error.
    Argument of type '"wheel"' is not assignable to parameter of type '"fullscreenchange" | "fullscreenerror"'.
  Overload 2 of 2, '(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void', gave the following error.
    Argument of type '(e: WheelEvent) => void' is not assignable to parameter of type 'EventListenerOrEventListenerObject'.
      Type '(e: WheelEvent) => void' is not assignable to type 'EventListener'.
    245 |
    246 |   beforeDestroy() {
  > 247 |     this.$el.removeEventListener('wheel', this.handleWheel)
        |     ^
    248 |   }
    249 |
    250 |   async load() {

Just linter errors. No actual impact.