Support importing modules from outside of the root emails/ folder #584
callumdmay
started this conversation in
Ideas
Replies: 2 comments
-
I had to keep my additional folders for helpers, etc. inside the emails folder.
As long as it's a valid react element, it will work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This does work, but ideally I would like to avoid copying my helper util files into the email folder |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys, really love this package, it's so useful especially with the tailwind support. I'm trying to import a file from outside the
emails/
folder into one of my email templates, however when I go to preview it, next.js is throwing an error:Looks like it might be because of how the next.js server instance is configured to resolve modules:
I can fix this by simply moving file.ts to emails/file.ts but that isn't ideal because file.ts is used a utility file used elsewhere
Beta Was this translation helpful? Give feedback.
All reactions