Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
haxxxton opened this issue Mar 17, 2023 · 0 comments
Open

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

haxxxton opened this issue Mar 17, 2023 · 0 comments

Comments

@haxxxton
Copy link

haxxxton commented Mar 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant