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

Error: 'angulartics2' has no exported member named 'Angulartics2Segment' #480

Open
1 of 3 tasks
wadefleming-nz opened this issue Mar 14, 2024 · 0 comments
Open
1 of 3 tasks

Comments

@wadefleming-nz
Copy link

For support questions, please consider using Gitter - Chat

I'm submitting a ...

  • bug report

  • feature request

  • question about the decisions made in the repository

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  1. Create a project using angulartics2 and a class like:
import { Angulartics2Segment } from 'angulartics2';

export class AnalyticsService {
  constructor(private analytics: Angulartics2Segment) {}
}
  1. Compile the project

Following error occurs:
Error: src/app/shared/services/analytics.service.ts:2:10 - error TS2724: '"angulartics2"' has no exported member named 'Angulartics2Segment'. Did you mean 'Angulartics2On'?

Other providers like Angulartics2Facebook fail in the same way.

Not sure if this is related to lack of Ivy support or if that has been included in 13.0.0

  • What is the expected behavior?
    Project compiles without errors

  • Environment:
    Angular 16
    angulartics 13.0.0

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

1 participant