frozeman / meteor-view-manager

The View manager helps to set views at specific locations in your app
http://frozeman.de/blog/2013/10/meteor-view-manager/
10 stars 2 forks source link

[Blaze integration] Error on DynamicTemplate integration #2

Open dbismut opened 10 years ago

dbismut commented 10 years ago

Thanks for the great work, but I get the following error when trying to integrate DynamicTemplate as in {{> DynamicTemplate placeholder="myKey"}} with Blaze Integration.

Exception from Deps recompute function: Error: Expected null or template in return value from inclusion function, found: undefined
    at http://localhost:3000/packages/spacebars.js?dad2d487bcc43e537226e528539ce6389ad6ca4e:68:13
    at null.<anonymous> (http://localhost:3000/packages/ui.js?85171b07899bb386e61a8bad2b2c1e9fe8e40a5d:2255:21)
    at Object.Meteor._noYieldsAllowed (http://localhost:3000/packages/meteor.js?2b578107b8239ff9bc64200e6af2a24001461b30:530:10)
    at null._func (http://localhost:3000/packages/deps.js?884d0ec99d5d983c3c7f3ed24ed12a4b1a8695c4:347:14)
    at _.extend._compute (http://localhost:3000/packages/deps.js?884d0ec99d5d983c3c7f3ed24ed12a4b1a8695c4:200:12)
    at new Deps.Computation (http://localhost:3000/packages/deps.js?884d0ec99d5d983c3c7f3ed24ed12a4b1a8695c4:130:10)
    at Object._.extend.autorun (http://localhost:3000/packages/deps.js?884d0ec99d5d983c3c7f3ed24ed12a4b1a8695c4:346:13)
    at materialize (http://localhost:3000/packages/ui.js?85171b07899bb386e61a8bad2b2c1e9fe8e40a5d:2254:29)
    at Object.UI.render (http://localhost:3000/packages/ui.js?85171b07899bb386e61a8bad2b2c1e9fe8e40a5d:2188:3)
    at materialize (http://localhost:3000/packages/ui.js?85171b07899bb386e61a8bad2b2c1e9fe8e40a5d:2324:23) 
frozeman commented 10 years ago

I couldn't reproduce this error. I use also blaze. Did you update vie manager? It seems like your not putting a template into the placeholder.