Meteor Markdown errors

Hey guys,

I’ve been battling this problem for a full day now and can’t seem to solve it. I’m wondering if there’s a config or initialization step that I may have missed that isn’t in the docs? I’m getting the following error when trying to put a {{#markdown}}{{/markdown}} block in a template.

Exception in template helper: ReferenceError: showdown is not defined
    at Object.<anonymous> (http://localhost:3000/app/app.js?hash=e865e5da9133e4f739598d7630066b79a817d0e7:1235:23)
    at http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:2984:16
    at http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:1643:16
    at http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:3036:66
    at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:3677:12)
    at http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:3035:27
    at .<anonymous> (http://localhost:3000/packages/spacebars.js?hash=6b2a9ade7533b27d695f0281f10c438e40b8e6f8:58:23)
    at http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:1865:20
    at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:3677:12)
    at http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:1863:29
meteor.js?hash=199010c…:913 Exception from Tracker recompute function:
meteor.js?hash=199010c…:913 Error: Expected template or null, found: undefined
    at ._render (spacebars.js?hash=6b2a9ad…:51)
    at doRender (blaze.js?hash=38069f4…:2017)
    at blaze.js?hash=38069f4…:1865
    at Function.Template._withTemplateInstanceFunc (blaze.js?hash=38069f4…:3677)
    at blaze.js?hash=38069f4…:1863
    at Object.Blaze._withCurrentView (blaze.js?hash=38069f4…:2204)
    at viewAutorun (blaze.js?hash=38069f4…:1862)
    at Tracker.Computation._compute (tracker.js?hash=b267c37…:341)
    at new Tracker.Computation (tracker.js?hash=b267c37…:229)
    at Object.Tracker.autorun (tracker.js?hash=b267c37…:580)
meteor.js?hash=199010c…:913 Exception from Tracker recompute function:
meteor.js?hash=199010c…:913 TypeError: Cannot read property 'splice' of null
    at http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:2788:37
    at Object.Tracker.nonreactive (http://localhost:3000/packages/tracker.js?hash=b267c37effdf4af331d16fc647c0370c2eaff44d:607:12)
    at Object.eachView.stopHandle.ObserveSequence.observe.addedAt (http://localhost:3000/packages/blaze.js?hash=38069f4f7cfbd8898160bc97d37dd847cd5985fe:2757:17)
    at Object.diffFn.addedBefore (http://localhost:3000/packages/observe-sequence.js?hash=b4e2d695a6de0090d16421b24913b4cab1984098:215:17)
    at http://localhost:3000/packages/diff-sequence.js?hash=727c5f356b359104f0b5586eab1b7866bce68589:193:42
    at Array.forEach (native)
    at Function._.each._.forEach (http://localhost:3000/packages/underscore.js?hash=8de51f9d86e95ae2ffee15a8db324a1decccba3e:139:11)
    at DiffSequence.diffQueryOrderedChanges (http://localhost:3000/packages/diff-sequence.js?hash=727c5f356b359104f0b5586eab1b7866bce68589:185:5)
    at diffArray (http://localhost:3000/packages/observe-sequence.js?hash=b4e2d695a6de0090d16421b24913b4cab1984098:199:3)
    at http://localhost:3000/packages/observe-sequence.js?hash=b4e2d695a6de0090d16421b24913b4cab1984098:132:9

I’m using Meteor 1.3.1 and markdown 1.0.8

The markdown package is working for me with Meteor 1.3.1. It might be your local build that’s confused (since it can’t find the local showdown dependency, which is part of the markdown package). Maybe try a meteor reset (usual warning - will wipe local DB!).

Thanks! I actually found the problem. I had registered a markdown helper a while ago that I forgot about and it was causing a conflict when I finally added the meteor/markdown package. It’s been interesting trying to track down some of these problems in a larger app since trying to move everything to module imports. Thanks for the response!