sentry-javascript: Error: Can't resolve 'domain' in @sentry/hub/dist
- 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
Package + Version
-
@sentry/browser -
@sentry/node -
raven-js -
raven-node(raven for node) - other:
Version:
4.2.0
Description
Building an Angular project with @sentry/browser v4.2.0 produces the error:
ERROR in ./node_modules/@sentry/hub/dist/hub.js
Module not found: Error: Can't resolve 'domain' in 'node_modules/@sentry/hub/dist'
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 17 (7 by maintainers)
OK, I’ve found a workaround: https://github.com/getsentry/sentry-javascript/pull/1679/commits/9cf2c4bc18fe0d58579d79ffc02a2b760c275bb1#diff-f42b1df1354d117face937b0ba20beb0
This should fix it, releasing a fix soon.
No more warning under Vue. Nice work - cheers.
Perfect, cheers! I can confirm I’m no longer seeing this on:
@HazAT we are using the angular-cli