rollbar-react icon indicating copy to clipboard operation
rollbar-react copied to clipboard

process is not defined - nx webkit typescript react project

Open haxxxton opened this issue 2 years ago • 0 comments

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

image image

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

haxxxton avatar Mar 17 '23 17:03 haxxxton