I've faced a problem recently that during the development all templates I had worked fine but on production some of them were missing. The error I get in server logs were like Could not render email before sending: Could not find template: adminCommentsAdded [500] mailer.
To keep story short, the problem was I had few HTML files in /private folder which had exact contents and Meteor removes duplication when building the bundle. The original files still can be fetched using Assets methods but since not all actual files are there, the lookback:emails fails to fetch some of them.
The fast solution is to make changes in files in order to make their contents differ, for example to add <!-- Template XXX ---> comment on the top.
I guess it'll be nice to point that out in lookback:emails documentation.
See the thread here for details https://forums.meteor.com/t/some-private-subfolders-are-missing-in-the-bundle/28711
I've faced a problem recently that during the development all templates I had worked fine but on production some of them were missing. The error I get in server logs were like
Could not render email before sending: Could not find template: adminCommentsAdded [500] mailer.To keep story short, the problem was I had few HTML files in
/privatefolder which had exact contents and Meteor removes duplication when building the bundle. The original files still can be fetched usingAssetsmethods but since not all actual files are there, thelookback:emailsfails to fetch some of them.The fast solution is to make changes in files in order to make their contents differ, for example to add
<!-- Template XXX --->comment on the top.I guess it'll be nice to point that out in
lookback:emailsdocumentation.See the thread here for details https://forums.meteor.com/t/some-private-subfolders-are-missing-in-the-bundle/28711