-
-
Couldn't load subscription status.
- Fork 1.7k
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
-
Provide a link to the affected event from your Sentry accountn/a
Package + Version
-
@sentry/browser@6.2.5 -
n/a@sentry/node -
n/araven-js -
n/araven-node(raven for node) - other:
@sentry/integrations@6.2.5
Version:
@sentry/integrations@6.2.5
Description
Using require breaks ESM builds.
We're evaluating snowpack which requires all deps to be be ESM compatible. Everything in our project works except for @sentry/integrations.
Best we can tell it's due to using CommonJS's require:
| const localForage = require('localforage'); |
Without being overly prescriptive it seems like the import * as localForageType from 'localforage'; could be used and no require is necessary.
| import * as localForageType from 'localforage'; |
Metadata
Metadata
Assignees
Labels
No labels
