Sentry-javascript: Warning on yarn serve

Created on 26 Mar 2020  ·  9Comments  ·  Source: getsentry/sentry-javascript

Package + Version

  • [x] @sentry/browser
  • [ ] @sentry/node
  • [ ] raven-js
  • [ ] raven-node _(raven for node)_
  • [ ] other:

Version:

 5.15.2

Description

I receive this while serving the app

Module not found: Error: Can't resolve 'perf_hooks' in '/Users/user/code/project/client/node_modules/@sentry/utils/esm'
Bug

Most helpful comment

5.15.3 will be released in a few minutes which fixes this issue.

All 9 comments

I believe I'm running into the same underlying issue.

I'm using create-react-app, and @sentry/browser as a dependency. During my compile step, it gives me this error

```

react-scripts build
Creating an optimized production build...
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
./node_modules/@sentry/utils/esm/misc.js
Module not found: Can't resolve 'perf_hooks' in '/home/travis/tmp/fresh-cra-template/node_modules/@sentry/utils/esm'```

Yeah this is killing our builds currently. :(

Downgrading to 5.15.1 fixes this.

I have the same issue in gitlab pipline, downgrade to 5.15.1 solve the issue 😉

I got hit by this too.
"perf_hooks" is a node feature, isn't it? So it should not be in prod code... but could be used during build I imagine?
Overall, everything seems to work, it's just that now project doesn't build "cleanly" and thus CI fails 😅

5.15.3 will be released in a few minutes which fixes this issue.

https://docs.sentry.io/error-reporting/quickstart/?platform=browsernpm still needs to be updated, it's saying to install 5.15.2 :)

@Tobbe it's done automatically when we push any changes to the docs themselves. I'll be bumped very soon :)

Was this page helpful?
0 / 5 - 0 ratings