-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: Export 'default' is not provided by 'mailgun.js' when importing in a Vite + React project #415
Comments
I'm getting the same issue in my SolidJS + Tauri project EnvironmentVite version: 5.0.0 But using a dynamic import is a workaround for now:
|
Same issue using with typescript in a Turborepo package |
Having the same issue with remix and turborepo |
Same. Anybody gonna fix this at Mailgun? What a pain. |
Same issue with my QwikCity project |
I am having this same issue building a Bun project that uses mailgun.js. |
Description
I'm encountering a
SyntaxError
when trying to importmailgun.js
in a project created using Vite and React. The error message is as follows:Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/mailgun__js.js?v=68b1499c' does not provide an export named 'default'
This occurs when trying to import
mailgun.js
using the default import syntax:Environment
Vite version: 5.2.0
React version: 18.2.0
Mailgun.js version: 10.2.1
Browser: Chrome 126.0.6478.127
Operating System: Windows 11
Expected Behavior
mailgun.js should be successfully imported without any syntax errors.
Actual Behavior
A SyntaxError is thrown indicating that the default export is not provided by mailgun.js.
The text was updated successfully, but these errors were encountered: