Generate a PDF from Dynamic Data in Meteor.js
Ryan Swapp
6117

Ryan,

I’m stuck trying to get the SSR.render to work on Meteor 1.2.1. The error I get is below. I saw you commented on an open issue thread for meteorhacksSSR with the exact same error the same day you made this blog post seen here: https://github.com/meteorhacks/meteor-ssr/issues/35

Did you resolve this?

I20160315–17:00:58.450(-7)? Exception while invoking method ‘generate_pdf’ TypeError: Cannot call method ‘charAt’ of undefined
I20160315–17:00:58.450(-7)? at packages/blaze/lookup.js:187:1
I20160315–17:00:58.450(-7)? at packages/meteorhacks_ssr/lib/overrides.js:41:1
I20160315–17:00:58.451(-7)? at Object.Blaze._TemplateWith (packages/meteorhacks_ssr/lib/overrides.js:56:1)
I20160315–17:00:58.451(-7)? at [object Object]._render (packages/meteorhacks_ssr/lib/dynamic.js:16:1)
I20160315–17:00:58.451(-7)? at packages/blaze/view.js:425:1
I20160315–17:00:58.451(-7)? at Object.Blaze._withCurrentView (packages/blaze/view.js:538:1)
I20160315–17:00:58.451(-7)? at Object.Blaze._expandView (packages/blaze/view.js:424:1)
I20160315–17:00:58.451(-7)? at [object Object].Blaze._HTMLJSExpander.def.visitObject (packages/blaze/view.js:449:1)
I20160315–17:00:58.451(-7)? at [object Object].HTML.Visitor.def.visit (packages/htmljs/visitors.js:61:1)
I20160315–17:00:58.451(-7)? at Object.Blaze._expand (packages/blaze/view.js:483:1)
I20160315–17:00:58.451(-7)? at Object.Blaze._expandView (packages/blaze/view.js:429:1)
I20160315–17:00:58.452(-7)? at [object Object].Blaze._HTMLJSExpander.def.visitObject (packages/blaze/view.js:449:1)
I20160315–17:00:58.452(-7)? at [object Object].HTML.Visitor.def.visit (packages/htmljs/visitors.js:61:1)
I20160315–17:00:58.452(-7)? at Object.Blaze._expand (packages/blaze/view.js:483:1)
I20160315–17:00:58.452(-7)? at Object.Blaze._expandView (packages/blaze/view.js:429:1)
I20160315–17:00:58.452(-7)? at [object Object].Blaze._HTMLJSExpander.def.visitObject (packages/blaze/view.js:449:1)