express-handlebars icon indicating copy to clipboard operation
express-handlebars copied to clipboard

Change to defaultLayout can give v3.1.0 ENOENT main.handlebars

Open aubergene opened this issue 5 years ago • 3 comments

Previously we hadn't specified layout: false and so it started looking for main.handlebars giving a ENOENT error. This was unexpected and probably shouldn't have be a minor version bump.

The change to the defaults was in #249

Creating this issue just so other people can find it if they encounter the same problem. We fixed it by adding layout: false to the handlebars options.

aubergene avatar May 15 '19 13:05 aubergene

I'm having the same issue but setting layout to false is not fixing it. Any ideas?

This issue seems to be a duplicate of #253 where I posted the same question.

amypellegrini avatar May 30 '19 12:05 amypellegrini

Agreed that per https://semver.org/, this should have been a major version bump. Thanks for creating the issue to track this.

@amypellegrini using layout:false did fix the issue for me. From #253 it looks like your issue was solved?

donmccurdy avatar Jun 24 '19 15:06 donmccurdy

@donmccurdy Yes, I've fix the issue by setting layoutto false. My previous comment refers to some difficulty I encountered trying to implement the fix, as it wasn't evident for me how this setting was used.

amypellegrini avatar Jun 24 '19 16:06 amypellegrini