Skip to content

process is not defined - nx webkit typescript react project #90

@haxxxton

Description

@haxxxton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions