You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
super simple scenario, works without express (by doing a manual compile and template()) but when using res.render i get the following error :
TypeError: /media/sf_work/testing/partial/App/views/partials/dashboard.hbs: Cannot read property 'body' of undefined
at getBlocks (/media/sf_work/testing/partial/node_modules/handlebars-layouts/index.js:6:18)
at Object.handlebars.registerHelper.block (/media/sf_work/testing/partial/node_modules/handlebars-layouts/index.js:59:26)
at Object.eval (eval at <anonymous> (/media/sf_work/testing/partial/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:189:23), <anonymous>:13:161)
at /media/sf_work/testing/partial/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/runtime.js:86:31
at /media/sf_work/testing/partial/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:465:21
at /media/sf_work/testing/partial/node_modules/hbs/lib/hbs.js:80:17
at /media/sf_work/testing/partial/node_modules/hbs/lib/hbs.js:61:11
at Function.Waiter.done (/media/sf_work/testing/partial/node_modules/hbs/lib/async.js:60:16)
at /media/sf_work/testing/partial/node_modules/hbs/lib/hbs.js:56:15
at fs.js:266:14
works like a charm, i get the correct output. One weird thing i noticed is that on the Express scenario, doing a console.log in the getBlocks function of the var blocks i get the following output
super simple scenario, works without express (by doing a manual compile and template()) but when using res.render i get the following error :
Layout :
partial :
Like i mentioned earlier, when doing
i get the above error. If i do a
works like a charm, i get the correct output. One weird thing i noticed is that on the Express scenario, doing a console.log in the getBlocks function of the var blocks i get the following output
catching the undefined solved the error but the partial is not added to the layout.
I am using the 0.3.3 version and 4.8.8 of express
Any help would be most welcomed at this point.
The text was updated successfully, but these errors were encountered: