Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Electron SDK Version
4.11.0
Electron Version
28
What platform are you using?
MacOS
Link to Sentry event
No response
Steps to Reproduce
Electron 28 with ESM support
Expected Result
Named export is supported as it shown in the readme
import { init } from '@sentry/electron';
init({
dsn: '__DSN__',
// ...
});
Actual Result
SyntaxError: Named export 'init' not found. The requested module '@sentry/electron' is a CommonJS module, which may not support all module.exports as named exports.
Metadata
Metadata
Assignees
Labels
No labels