Skip to content

Conversation

@mydea
Copy link
Member

@mydea mydea commented Jul 6, 2023

As @sentry/angular uses TS 4.0, but the default behavior of TS is to load all @types/xxx packages it can find in node_modules, the build will fail if any other package uses a types package that uses newer TS features.

In order to avoid this, we opt out of the automatic types resolution - since we are not using any @types/xxx package in angular as of now, this doesn't change anything.

See https://www.typescriptlang.org/tsconfig/types.html for details.

As `@sentry/angular` uses TS 4.0, but the default behavior of TS is to load _all_ `@types/xxx` packages it can find in node_modules, the build will fail if _any_ other package uses a types package that uses newer TS features. 

In order to avoid this, we opt out of the automatic types resolution - since we are not using any `@types/xxx` package in angular as of now, this doesn't change anything.
@mydea mydea added the Package: angular Issues related to the Sentry Angular SDK label Jul 6, 2023
@mydea mydea requested review from AbhiPrasad, Lms24 and lforst July 6, 2023 12:39
@mydea mydea self-assigned this Jul 6, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.81 KB (+0.08% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 68.56 KB (+0.02% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.11 KB (+0.04% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 59.81 KB (+0.03% 🔺)
@sentry/browser - Webpack (gzipped + minified) 21.73 KB (+0.1% 🔺)
@sentry/browser - Webpack (minified) 70.94 KB (+0.03% 🔺)
@sentry/react - Webpack (gzipped + minified) 21.75 KB (+0.09% 🔺)
@sentry/nextjs Client - Webpack (gzipped + minified) 50.22 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 29.77 KB (+0.02% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 27.82 KB (+0.04% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.42 KB (+0.01% 🔺)
@sentry/replay - Webpack (gzipped + minified) 43.1 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.21 KB (+0.03% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.67 KB (+0.02% 🔺)

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only happens in angular, right; not in angular-ivy?

@mydea
Copy link
Member Author

mydea commented Jul 6, 2023

This only happens in angular, right; not in angular-ivy?

angular-ivy is on the "global" TS version, so it is not affected!

@mydea mydea merged commit 9c86bf4 into develop Jul 6, 2023
@mydea mydea deleted the fn/angular-types branch July 6, 2023 13:15
AbhiPrasad pushed a commit that referenced this pull request Jul 6, 2023
As `@sentry/angular` uses TS 4.0, but the default behavior of TS is to
load _all_ `@types/xxx` packages it can find in node_modules, the build
will fail if _any_ other package uses a types package that uses newer TS
features.

In order to avoid this, we opt out of the automatic types resolution -
since we are not using any `@types/xxx` package in angular as of now,
this doesn't change anything.

See https://www.typescriptlang.org/tsconfig/types.html for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Package: angular Issues related to the Sentry Angular SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants