rollbar / rollbar/rollbar-react
process is not defined - nx webkit typescript react project
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46
- Forks
- 9
- Avg merge
- 2d 56m
- Merged PRs (30d)
- 4
Description
I have an nx monorepo project with a typescript react app inside it. When i use @rollbar/react within this project i am seeing errors for process is not defined. These errors only appear when i have captureUncaught: true and/or captureUnhandledRejections: true in my Rollbar config.
Pictures of the error
Rollbar config
const rollbarConfig: Rollbar.Configuration = {
enabled: process.env.NODE_ENV !== 'development',
accessToken: 'REDACTED',
environment: getRollbarEnvironment(),
captureUncaught: true,
captureUnhandledRejections: true,
payload: {
context: 'root',
client: {
javascript: {
source_map_enabled: true,
},
},
},
};
Environment:
OSX
node: 18.12.1
rollbar: 2.26.1
@rollbar/react: 0.11.1
react: 18.2.0
nx: 15.5.3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the report in the stated Nx, React, TypeScript, Node, rollbar, and @rollbar/react versions using the shown Rollbar configuration. Inspect the @rollbar/react entry points reached when captureUncaught or captureUnhandledRejections is enabled; done means the reported process errors are resolved without breaking those options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, typescript
- Domain
- frontend, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100