Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSR compileTemplate not Found #34

Open
schikara opened this issue Sep 18, 2015 · 10 comments
Open

SSR compileTemplate not Found #34

schikara opened this issue Sep 18, 2015 · 10 comments

Comments

@schikara
Copy link

Any insights appreciate into challenges I am having using SSR, package is defined in my package.js

api.use([
'accounts-password',
'email',
'meteorhacks:ssr',
], 'server') ;

When I use SSR server side (server/sendemail.js) as below

SSR.compileTemplate( 'htmlEmail', Assets.getText('private/passwordResetPlainText.html'));

I get the below error

Exception while invoking method 'sendEmail' TypeError: Object # Object> has no method 'compileTemplate'

SSR is definitely defined on Server. When I get all methods on the SSR I get only the

objectconsole.log(EmailGenerator.getAllMethods(SSR));

Here is my output

[ 'render' ]

For some reasons it only finds the render method and not the compilTemplate method. I am using SSR in a login "private" package which is used by main app.

@vincro
Copy link

vincro commented Oct 28, 2015

Is it plausible you need "templating" as well? Did you ever figure this out?

@gibex
Copy link

gibex commented Nov 1, 2015

My first answer was wrong, I had to remove it.

Can you post more? Meteor version? SSR Version?

@schikara
Copy link
Author

schikara commented Nov 2, 2015

Thanks for your help! Really appreciate it. This was a few months ago, I ended up not using SSR package.

@gibex
Copy link

gibex commented Nov 2, 2015

Did you find another package? Which one?

@ashishgupta2
Copy link

I am facing the same issue, I would appreciate if you could please let us know what did you end up using. Thanks..

@schikara
Copy link
Author

schikara commented Nov 4, 2015

I ended up using the forgotpassword method....http://docs.meteor.com/#/full/accounts_forgotpassword

@bitomule
Copy link

Any update on this? I have the same issue :(

@bitomule
Copy link

I finally changed version in .versions file and seems to be working fine now.

@Ethaan
Copy link

Ethaan commented Jul 21, 2016

to which version did you change?

@amllano
Copy link

amllano commented Jul 25, 2016

It works properly with meteorhacks:[email protected]

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

No branches or pull requests

7 participants