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 #192: Uncaught TypeError: undefined is not a function
Created: 2015-02-09T23:29:13Z
[Enter steps to reproduce below:]

...
...

Atom Version: 0.175.0
System: linux 3.13.0-36-generic
Thrown From: markdown-preview package, v0.124.0
Stack Trace
Uncaught TypeError: undefined is not a function
At /usr/share/atom/resources/app/node_modules/markdown-preview/lib/renderer.js:145

TypeError: undefined is not a function
  at convertCodeBlocksToAtomEditors (/usr/share/atom/resources/app/node_modules/markdown-preview/lib/renderer.js:145:47)
  at /usr/share/atom/resources/app/node_modules/markdown-preview/lib/renderer.js:41:7
  at /usr/share/atom/resources/app/node_modules/markdown-preview/lib/renderer.js:80:16
  at module.exports (/usr/share/atom/resources/app/node_modules/roaster/lib/roaster.js:66:14)
  at render (/usr/share/atom/resources/app/node_modules/markdown-preview/lib/renderer.js:73:12)
  at Object.exports.toDOMFragment (/usr/share/atom/resources/app/node_modules/markdown-preview/lib/renderer.js:30:12)
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.renderMarkdownText (/usr/share/atom/resources/app/node_modules/markdown-preview/lib/markdown-preview-view.js:258:23)
  at MarkdownPreviewView.module.exports.MarkdownPreviewView.renderMarkdown (/usr/share/atom/resources/app/node_modules/markdown-preview/lib/markdown-preview-view.js:253:21)
  at /usr/share/atom/resources/app/node_modules/markdown-preview/lib/markdown-preview-view.js:200:17
  at /usr/share/atom/resources/app/node_modules/markdown-preview/lib/markdown-preview-view.js:213:22
  at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/service-hub/node_modules/event-kit/lib/emitter.js:82:11)
  at /usr/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:1151:25


Commands
     -0:00.0 core:paste (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  }
}
Installed Packages
# User
No installed packages

# Dev
No dev packages
/cc @atom/core

Closing comment (2015-02-09T23:33:41Z): I believe this is a duplicate of #176
If you upgrade to the latest release, 0.177, it should be resolved.