Skip to content

SDK does not support ESM in main process #751

Closed
@mahnunchik

Description

@mahnunchik

Is there an existing issue for this?

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions