@sentry/browser
@sentry/node
raven-js
raven-node
_(raven for node)_ 5.15.2
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'
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 馃槄
Will be fixed with this PR
https://github.com/getsentry/sentry-javascript/pull/2524
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 :)
Most helpful comment
5.15.3
will be released in a few minutes which fixes this issue.