Skip to content

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

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" />

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions