Closed Ngomana closed 2 years ago
Do you use node 16 or node 14? I've also seen problems with node 14 in the pipeline with the beta
Yeah try using node 16 until I've figured out what the problem here. v0.17.0-beta.2
work well with node 16, but rendering the templates doesn't work on node 14. I guess I'm doing something wrong with the paths here.
Ah, String.replaceAll()
isn't available in node 14, that's why.
Do you use node 16 or node 14? I've also seen problems with node 14 in the pipeline with the beta
I've upgraded to version 16, but still getting the same error. Am I supposed to create my own template?
I didn't specify the correct path in the default template. Should be fixed now.
npm i @perfood/couch-auth@0.17.0-beta.3
Usually, you'll want to define your own templates by providing the folder via the config. See https://github.com/perfood/couch-auth#email-templates
I was going through the tutorial on screen on getting started, I'm able to register and login but I'm unable to receive
confirmEmail
notification, I'm using anamecheap
email to send out the emails.I've tried adding a template for confirm email
confirmEmail.njk
But I get this error when I register a new user:![Screenshot 2022-04-21 at 00 25 37](https://user-images.githubusercontent.com/61317733/164470634-1a752ea0-7559-4c29-aac7-2b68a56421c3.png)