and call it from teh frontend import { sendEmail } from './sendEmail'; ... await sendEmail(to, subject, stripHtml(message), message);
However, on page load, it crashes with the error Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/mailgun__js.js?v=3002b96a' does not provide an export named 'default' (at mailgun.ts:1:8)
Why does this happen? Am I not implementing it correctly?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.