Skip to content

Console error when using ngx-charts 23.0.1 with angular 19.2.14 #2064

@PitouGames

Description

@PitouGames

Describe the bug

I tried to update npx-charts from 22.0.0 to 23.0.1 on my angular 19.2.14 web application.
Now, I have an error ERROR NullInjectorError: NullInjectorError: No provider for EnvironmentInjector! when I move the mouse over a line chart, and the tooltip is not displayed.

Since this version declares compatibility with angular 18, 19 and 20, I think this is a bug.

"@angular/core": "18.x || 19.x || 20.x",

To Reproduce
Steps to reproduce the behavior:

  1. Create a 19.2.14 angular application
  2. Install npx-charts 23.0.1
  3. Create a component to display a
  4. Move the mouse over the chart
  5. See error in the console: ERROR NullInjectorError: NullInjectorError: No provider for EnvironmentInjector!
  6. Tooltip is not displayed
Image

Expected behavior
No errors and the tooltip IS displayed.

ngx-charts version
23.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions