Skip to content
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

1.0.0: Typescript related build/bundle errors #219

Closed
zarko-tg opened this issue Apr 15, 2021 · 1 comment
Closed

1.0.0: Typescript related build/bundle errors #219

zarko-tg opened this issue Apr 15, 2021 · 1 comment

Comments

@zarko-tg
Copy link

Is there any or a new requirement on a specific min. Typescript version?

We're more or less forced to use an older one (2.8.4) cause of project dependencies complexity,
so now we're getting errors such as:

[compiler.karma-typescript]: Compiling project using Typescript 2.8.4
[compiler.karma-typescript]: node_modules/@sentry/browser/dist/backend.d.ts(38,35): error TS2304: Cannot find name 'unknown'.

[compiler.karma-typescript]: node_modules/@sentry/browser/dist/eventbuilder.d.ts(6,73): error TS2304: Cannot find name 'unknown'.

[compiler.karma-typescript]: node_modules/@sentry/browser/dist/eventbuilder.d.ts(15,58): error TS2304: Cannot find name 'unknown'.

[compiler.karma-typescript]: node_modules/@sentry/browser/dist/sdk.d.ts(107,35): error TS2370: A rest parameter must be of an array type.

[compiler.karma-typescript]: node_modules/@sentry/browser/dist/transports/base.d.ts(34,27): error TS2304: Cannot find name 'unknown'.

[compiler.karma-typescript]: node_modules/@sentry/hub/dist/session.d.ts(18,27): error TS2304: Cannot find name 'Omit'.

[compiler.karma-typescript]: node_modules/@sentry/types/dist/context.d.ts(1,46): error TS2304: Cannot find name 'unknown'.

[compiler.karma-typescript]: node_modules/@sentry/types/dist/extra.d.ts(1,29): error TS2304: Cannot find name 'unknown'.

[compiler.karma-typescript]: node_modules/@sentry/types/dist/misc.d.ts(50,61): error TS2304: Cannot find name 'bigint'.
...

etc.

Experienced on an Ionic 3.x app project (Cordova 10). NodeJs 12.x.

@jennmueng
Copy link
Member

Yes, there is now a minimum version of Typescript 3. I will add this to the release notes to be more clear then.

Although if you cannot update Typescript, you can try this workaround suggested by my colleague getsentry/sentry-javascript#2322 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants