keystonejs / keystone-email

⚠️ Archived - Legacy email helper for KeystoneJS Apps
MIT License
29 stars 40 forks source link

Error when using react.js as template engine #12

Closed jephjohnson closed 7 years ago

jephjohnson commented 7 years ago

I keep getting the following error when using react as my engine. "Error: Could not load engine ([object Object]). Please make sure you have installed the package in your project."

new Email('test-email.jsx', { engine: require('react'), }).send();

w01fgang commented 7 years ago

@jephjohnson React itself is not an engine. Maybe you can try to use express engine for react

jephjohnson commented 7 years ago

@w01fgang - doh, that solved it