Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Templates with exact contents are merged in bundles #74

Open
imajus opened this issue Aug 31, 2016 · 0 comments
Open

Templates with exact contents are merged in bundles #74

imajus opened this issue Aug 31, 2016 · 0 comments

Comments

@imajus
Copy link

imajus commented Aug 31, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant