-
Dear React Email Team, The project uses Firebase Functions as a backend and the emails need to be triggered on Firebase Functions. Yet, when I try to import an email template (a ⚠ functions: Error: Cannot find module '../../emails/emails/stripe-welcome' My editor is able to locate the module just fine. Yet, the code doesn't run. It would be great to have a working reference/example of react-email working with Firebase.
Let me know if more context needs to be provided. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
you need to transpile those .. for example with babel, then you can import them okay.. |
Beta Was this translation helpful? Give feedback.
-
Here is hwo to do it. No need for any tricks: https://github.com/MartinXPN/nextjs-firebase-mui-starter |
Beta Was this translation helpful? Give feedback.
Here is hwo to do it. No need for any tricks: https://github.com/MartinXPN/nextjs-firebase-mui-starter