vincentcn / markdown-scroll-sync

Auto-scroll markdown-preview tab to match markdown source
MIT License
95 stars 26 forks source link

Uncaught TypeError: Right-hand side of 'instanceof' is not callable #1292

Open mayunxi opened 4 years ago

mayunxi commented 4 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.45.0 x64 Electron: 4.2.7 OS: Ubuntu 16.04.1 Thrown From: markdown-scroll-sync package 2.1.2

Stack Trace

Uncaught TypeError: Right-hand side of 'instanceof' is not callable

At /home/stfz/.atom/packages/markdown-scroll-sync/lib/main.coffee:38

TypeError: Right-hand side of 'instanceof' is not callable
    at /packages/markdown-scroll-sync/lib/main.coffee:38:14
    at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1214120)
    at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1215561)
    at Workspace.didChangeActivePaneItemOnPaneContainer (/usr/share/atom/resources/app/static/<embedded>:11:424586)
    at WorkspaceCenter.paneContainer.onDidChangeActivePaneItem.t (/usr/share/atom/resources/app/static/<embedded>:14:44778)
    at Function.simpleDispatch (/usr/share/atom/resources/app/static/<embedded>:11:1214120)
    at Emitter.emit (/usr/share/atom/resources/app/static/<embedded>:11:1215561)
    at PaneContainer.didChangeActiveItemOnPane (/usr/share/atom/resources/app/static/<embedded>:11:446919)
    at Pane.setActiveItem (/usr/share/atom/resources/app/static/<embedded>:11:455763)
    at Pane.activateItem (/usr/share/atom/resources/app/static/<embedded>:11:457933)
    at TabBarView.onClick (/usr/share/atom/resources/app/static/<embedded>:11:1165207)

Commands

     -2:48.3.0 core:confirm (input.hidden-input)
  8x -2:41.1.0 core:backspace (input.hidden-input)
     -2:17.9.0 markdown-preview-plus:toggle (input.hidden-input)
  2x -1:22.4.0 markdown-preview-plus:select-syntax-theme (input.hidden-input)
     -1:08.1.0 markdown-preview-plus:toggle-render-latex (input.hidden-input)
  2x -1:04.0 markdown-preview-plus:toggle (input.hidden-input)

Non-Core Packages

language-markdown 0.37.0 
markdown-image-paste 2.5.2 
markdown-preview-plus 3.11.5 
markdown-scroll-sync 2.1.2 
mayunxi commented 4 years ago

erro