Repository: atom/markdown-preview

Issue #176: Uncaught TypeError: undefined is not a function
Created: 2015-01-21T21:13:28Z
Uncaught TypeError: undefined is not a function
Atom Version: 0.175.0
System: Mac OS X 10.10.1
Thrown From: markdown-preview package
Steps to reproduce

Open Markdown Cheatsheet (markdown.md) from Assemble in Atom
Hit ctrl-shift-M for Markdown Preview
Error thrown

/Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/renderer.js:145

TypeError: undefined is not a function
  at convertCodeBlocksToAtomEditors (/Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/renderer.js:145:47)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/renderer.js:41:7
  at /Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/renderer.js:80:16
  at module.exports (/Applications/Atom.app/Contents/Resources/app/node_modules/roaster/lib/roaster.js:66:14)
  at render (/Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/renderer.js:73:12)
  at Object.exports.toDOMFragment (/Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/renderer.js:30:12)
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.renderMarkdownText (/Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/markdown-preview-view.js:258:23)
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.renderMarkdown (/Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/markdown-preview-view.js:253:21)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/markdown-preview-view.js:108:26
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.resolveEditor (/Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/markdown-preview-view.js:115:16)
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.attached (/Applications/Atom.app/Contents/Resources/app/node_modules/markdown-preview/lib/markdown-preview-view.js:45:21)
  at space-pen-div.View.element.attached (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/node_modules/space-pen/lib/space-pen.js:164:63)
  at space-pen-div.CustomElementPrototype.attachedCallback (/Users/Kier/.atom/packages/linter/node_modules/space-pen/lib/space-pen.js:51:55)
  at atom-pane.PaneElement.activeItemChanged (/Applications/Atom.app/Contents/Resources/app/src/pane-element.js:110:24)
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:264:22)
  at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:353:14)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:327:14)
  at /Applications/Atom.app/Contents/Resources/app/src/workspace.js:524:16
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:787:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:816:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:749:13)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:810:14
  at flush (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:108:17)
  at process._tickCallback (node.js:386:11)

Duplicate issue #187: Uncaught TypeError: undefined is not a function
Created: 2015-02-03T12:45:28Z
[Enter steps to reproduce below:]

...
...

Atom Version: 0.175.0
System: Microsoft Windows 8.1 Enterprise
Thrown From: markdown-preview package, v0.124.0
Stack Trace
Uncaught TypeError: undefined is not a function
At c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\renderer.js:145

TypeError: undefined is not a function
  at convertCodeBlocksToAtomEditors (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\renderer.js:145:47)
  at c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\renderer.js:41:7
  at c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\renderer.js:80:16
  at module.exports (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\roaster\lib\roaster.js:66:14)
  at render (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\renderer.js:73:12)
  at Object.exports.toDOMFragment (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\renderer.js:30:12)
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.renderMarkdownText (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\markdown-preview-view.js:258:23)
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.renderMarkdown (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\markdown-preview-view.js:253:21)
  at c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\markdown-preview-view.js:108:26
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.resolveEditor (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\markdown-preview-view.js:115:16)
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.attached (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\markdown-preview\lib\markdown-preview-view.js:45:21)
  at space-pen-div.View.element.attached (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\encoding-selector\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:164:63)
  at space-pen-div.CustomElementPrototype.attachedCallback (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\encoding-selector\node_modules\atom-space-pen-views\node_modules\space-pen\lib\space-pen.js:51:55)
  at atom-pane.PaneElement.activeItemChanged (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\src\pane-element.js:110:24)
  at Emitter.module.exports.Emitter.emit (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\event-kit\lib\emitter.js:82:11)
  at Pane.module.exports.Pane.setActiveItem (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\src\pane.js:264:22)
  at Pane.module.exports.Pane.activateItem (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\src\pane.js:328:21)
  at c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\src\workspace.js:524:16
  at _fulfilled (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\q\q.js:787:54)
  at self.promiseDispatch.done (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\q\q.js:816:30)
  at Promise.promise.promiseDispatch (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\q\q.js:749:13)
  at c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\q\q.js:810:14
  at flush (c:\Users\Serpurity\AppData\Local\atom\app-0.175.0\resources\app\node_modules\q\q.js:108:17)
  at process._tickCallback (node.js:386:11)


Commands
     -1:10.2 tree-view:remove (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:04.2 command-palette:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:02.7 editor:consolidate-selections (atom-text-editor.editor.mini)
     -1:02.7 core:cancel (atom-text-editor.editor.mini)
     -0:59.5 markdown-preview:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:47.1 deprecation-cop:view (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)
     -0:22.1 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-atom-dark-syntax.theme-atom-dark-ui)
  2x -0:14.3 emmet:merge-lines (atom-text-editor.editor.vim-mode.command-mode.is-focused)
     -0:04.2 command-palette:toggle (atom-text-editor.editor.vim-mode.command-mode.is-focused)
     -0:00.0 core:confirm (atom-text-editor.editor.mini)
     -0:00.0 markdown-preview:toggle (atom-text-editor.editor.vim-mode.command-mode.is-focused)

Config
{
  "core": {}
}
Installed Packages
# User
emmet, v2.3.2
vim-mode, v0.27.0

# Dev
No dev packages
/cc @atom/core

Closing comment (2015-02-03T16:51:25Z): I believe this is a duplicate of #176