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

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

Closed
RakeshrajA5 opened this issue Sep 19, 2024 · 6 comments · Fixed by #900
Labels
bug Something isn't working

Comments

@RakeshrajA5
Copy link

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

@RakeshrajA5 RakeshrajA5 added the bug Something isn't working label Sep 19, 2024
@izaaz
Copy link
Contributor

izaaz commented Sep 19, 2024

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

@Mercy811
Copy link
Contributor

Hi @RakeshrajA5, is it the same issue as #882? Could you run yarn list @amplitude/analytics-types in your project and share the screenshot? Thanks

@Abde-T
Copy link

Abde-T commented Sep 30, 2024

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
Copy link

AyoubTRD commented Oct 1, 2024

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

@milingo
Copy link

milingo commented Oct 3, 2024

Same error running on Next.js:

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

@Mercy811
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants