-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cannot find type definition file for 'react' using @sentry/angular-ivy #9679
Comments
Hey @edgarmcbee, thanks for writing in. I think this is because of https://github.com/getsentry/sentry-javascript/pull/9542/files#diff-378dedc641eef5145d6bdc9baf222ef3eacdd3853dced821108cd3e9ba3eaa76R69 We'll take a look! |
This is not only in |
Is this fixed .? |
I can confirm, I got this error in the
|
So, I can finally find a workaround to solve it, just remove the first line in the affected file, in my case I run it inside the docker, so this line of code might help someone, add this right after
|
Clearly, this is the issue with version 7.82.0. For now, we have downgraded the sentry version to 7.81.1, and it is working fine. |
It also occurs in version 7.80.1 of @sentry/node. |
@hcancelik That's weird. If you have tried it on local, try deleting your node_modules directory and do npm cache clean before doing a fresh install. |
@swetankrathi I'm also getting the same error locally. I noticed this yesterday when our deployment Github action started to fail. A new release was published then, so I tried to upgrade to 7.82, but it didn't make any difference. ![]() ![]() |
@hcancelik Not sure about the node sdk. Our build pipeline started to fail today after the latest version. So, we have downgraded to a minor version. Your packag-lock.json looks fine. Try downgrading to one more minor version. We faced problem with local as well because the latest version was cached by npm. Deleting node_modules and cleaning the cache worked. |
It looks like locking the version to 7.81.1 works for @sentry/nodejs |
Hi everyone, sorry for the inconvenience. We just released version |
Please let us know if this issue persists! |
working like a WoW. |
This is a hotfix for getsentry#9679. We leaked Browser/React types into the generic `@sentry/types` package which should not have any runtime specific types.
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.tsng serve
Expected Result
ng serve completes
Actual Result
✘ [ERROR] TS2688: Cannot find type definition file for 'react'. [plugin angular-compiler]
The text was updated successfully, but these errors were encountered: