Skip to content

Failed to compile #5234

@rdas6313

Description

@rdas6313

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/react

SDK Version

7.1.1

Framework Version

7.1.1

Link to Sentry event

No response

Steps to Reproduce

1.Opened a sentry account
2. followed setup
3. installed packages using this command "npm install --save @sentry/react @sentry/tracing"
4. imported following modules " import * as Sentry from "@sentry/react"; import { BrowserTracing } from "@sentry/tracing"; "
5. Then compiled.

Expected Result

Successful compilation.

Actual Result

Failed to compile

./node_modules/@sentry/utils/esm/object.js
Module parse failed: Unexpected token (108:6)
You may need an appropriate loader to handle this file type.
| name: value.name,
| stack: value.stack,
| ...getOwnProperties(value),
| };
| } else if (isEvent(value)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions