Skip to content

Cannot find type definition file for 'react' using @sentry/angular-ivy #9679

@edgarmcbee

Description

@edgarmcbee

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/angular-ivy

SDK Version

7.82.0

Framework Version

17.0.4

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

ng new
npm i @sentry/angular-ivy
add import * as Sentry from '@sentry/angular-ivy'; to app.component.ts
ng serve

Expected Result

ng serve completes

Actual Result

✘ [ERROR] TS2688: Cannot find type definition file for 'react'. [plugin angular-compiler]

node_modules/@sentry/browser/node_modules/@sentry/types/types/instrument.d.ts:1:22:
  1 │ /// <reference types="react" />

Metadata

Metadata

Assignees

Labels

Package: angularIssues related to the Sentry Angular SDK

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions