-
Notifications
You must be signed in to change notification settings - Fork 73
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
Exception this throwing when install this package in ReactJS typescript application. #396
Comments
Hi @Daham2000 Could you provide some additional information like:
Cheers, |
|
Hi, @codecapitano Do you want more info or any updates about this issue? |
Hey @Daham2000 No updates yet. |
Hi, @codecapitano Have you tried with a ReactJS typescript app? |
The Demo is a TS React App |
What is the React version and Typescript version of your Demo react app? |
You'll find everything in the demo repository. |
I got a couple other type errors on top what the OP encountered...
|
I get exactly the same error when trying to set Angular app: |
Hi @matiduck @adam-revnt @Daham2000 The error message is coming from the web-vitals package (PerformancePaintTiming is not found). I searched a bit around and found this issue in the web-vitals repo. Let me quote the answer from above issue, which also mentions some ways to solve the problem.
Look like the the PerformancePaintTiming interface has been added with TypeScript version 4.4. Cheers, cc @cedricziel |
@Daham2000 as you indicated, the error occurs here node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/types.d.ts:11:5, when typing the getter. Typing the getter is supported in TypeScript from version 4.3 and higher https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-3.html. The problem is that your version of TypeScript < 4.3. |
There is an exception throwing when installing this package in the ReactJS typescript application. Instalation is success but when using this package in code, (when importing from package this expectation this throwing.
Need a solution please.
Compiled with problems:X
ERROR in node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/types.d.ts:11:5
TS1131: Property or signature expected.
ERROR in node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/types.d.ts:11:9
TS1005: ';' expected.
ERROR in node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/types.d.ts:11:16
TS1005: ';' expected.
ERROR in node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/types.d.ts:12:1
TS1128: Declaration or statement expected.
The text was updated successfully, but these errors were encountered: