amplitude / Amplitude-TypeScript

TypeScript Amplitude Analytics SDK
https://amplitude.github.io/Amplitude-TypeScript/
MIT License
135 stars 39 forks source link

TS1005 Error amplitude/analytics-types/element-interaction.ts:70:39 ? expected During Angular build amplitude/analytics-browser version 2.9.3 #883

Closed RakeshrajA5 closed 4 weeks ago

RakeshrajA5 commented 2 months ago

TS1005 Error amplitude/analytics-types/element-interaction.ts:70:39 ? expected During Angular build amplitude/analytics-browser version 2.9.3

izaaz commented 2 months ago

@RakeshrajA5 can you please try with the latest version to see if it solves the problem?

Mercy811 commented 2 months ago

Hi @RakeshrajA5, is it the same issue as https://github.com/amplitude/Amplitude-TypeScript/issues/882? Could you run yarn list @amplitude/analytics-types in your project and share the screenshot? Thanks

Abde-T commented 1 month ago

Getting the same error.

Error: node_modules/@amplitude/analytics-types/lib/esm/element-interactions.d.ts:70:64 - error TS1005: '?' expected.
Element: infer T extends abstract new (...args: any) => any;

running npm install @amplitude/analytics-types results in a successful build locally, but the error still occurs when starting the development server, or on the Netlify build.

AyoubTRD commented 1 month ago

@izaaz @Mercy811 We have the same issue while building our Angular app

milingo commented 1 month ago

Same error running on Next.js:

migueljimenez@MJ0292~codecobeedashboard-2 0 2024-10-02 at 12 11 42 PM

Mercy811 commented 4 weeks ago

analytics-browser 2.11.8 and analytics-types 2.8.3 should fix it