Skip to content

Error: Can't resolve 'domain' in @sentry/hub/dist #1670

Closed

Description

@samalexander

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'

Activity

  1. HazAT commented on Oct 23, 2018

    @HazAT
    Member

    Thx for reporting this, fix will soon be released.

  2. self-assigned this
    on Oct 23, 2018
  3. HazAT commented on Oct 23, 2018

    @HazAT
    Member

    Fixed in 4.2.1

  4. bsbechtel commented on Oct 23, 2018

    @bsbechtel

    I have 4.2.1 installed and am still seeing this issue. I just upgraded to Angular 7.

  5. lbracken commented on Oct 24, 2018

    @lbracken

    Also seeing issue, but as a warning, with @sentry/browser 4.2.1 and Angular 7.0.0

    WARNING in ./node_modules/@sentry/hub/dist/hub.js
    Module not found: Error: Can't resolve 'domain' in '/<project-dir>/node_modules/@sentry/hub/dist'
    
  6. HazAT commented on Oct 24, 2018

    @HazAT
    Member

    Can I ask you guys what kind of packager are you using?

  7. reopened this on Oct 24, 2018
  8. samalexander commented on Oct 24, 2018

    @samalexander
    Author

    @HazAT we are using the angular-cli

  9. ddikman commented on Oct 24, 2018

    @ddikman

    Same here with:

    angular-cli 7.0.2
    npm 6.4.1
    node 10.9.0
    

    Output on ng serve

    WARNING in ./node_modules/@sentry/hub/dist/hub.js
    Module not found: Error: Can't resolve 'domain' in '/my-app-proto/node_modules/@sentry/hub/dist'
    

    Doesn't seem to stop any functionality, errors are beings sent correctly.

  10. HazAT commented on Oct 24, 2018

    @HazAT
    Member

    Yeah, I am currently digging into this, webpack outputs this warning, our SDK works.
    I am looking for workaround that webpack doesn't spit out this warning.

  11. HazAT commented on Oct 24, 2018

    @HazAT
    Member

    OK, I've found a workaround:
    9cf2c4b#diff-f42b1df1354d117face937b0ba20beb0

    This should fix it, releasing a fix soon.

  12. Prtkpwr commented on Oct 24, 2018

    @Prtkpwr

    please release an update soon.. i cant wait to use this in my application

  13. HazAT commented on Oct 24, 2018

    @HazAT
    Member

    @Prtkpwr You should be able to use it right now anyway, it's "just" a warning.
    We are still testing stuff to make sure we do not regress.

  14. EyePulp commented on Oct 24, 2018

    @EyePulp

    Confirming we're seeing this in a Vue CLI 3 project with webpack 4. Just a warning, seems functional otherwise.

    Thanks for jumping on this @HazAT

  15. Prtkpwr commented on Oct 25, 2018

    @Prtkpwr
  16. HazAT commented on Oct 25, 2018

    @HazAT
    Member

    4.2.2 is on it's way now

  17. Prtkpwr commented on Oct 25, 2018

    @Prtkpwr
  18. ddikman commented on Oct 25, 2018

    @ddikman

    Perfect, cheers!
    I can confirm I'm no longer seeing this on:

    angular-cli 7.0.2
    npm 6.4.1
    node 10.9.0
    @sentry/browser 4.2.3
    
  19. EyePulp commented on Oct 25, 2018

    @EyePulp

    No more warning under Vue. Nice work - cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions