Skip to content

[charts] Unable to import ChartsYReferenceLineProps #18597

@jvskriubakken

Description

@jvskriubakken

Steps to reproduce

In my component I dynamically create an array of ChartsYReferenceLineProps before giving it to the chart. Therefore I need to use the type. My ide Rider suggests importing
import { ChartsYReferenceLineProps } from "@mui/x-charts/ChartsReferenceLine/ChartsYReferenceLine";

However the typescript build complains about it not being available (TS2307: Cannot find module).

I would normally expect it to be importable on "@mui/x-charts" or "@mui/x-charts-pro".

Something forgotten?

Current behavior

Not able to import ChartsYReferenceLineProps

Expected behavior

Being able to import ChartsYReferenceLineProps

Context

No response

Your environment

npx @mui/envinfo

System:
OS: macOS 15.5
Binaries:
Node: 20.19.0 - /usr/local/bin/node
npm: 10.8.2 - /usr/local/bin/npm
pnpm: 10.12.1 - /usr/local/bin/pnpm
Browsers:
Chrome: 137.0.7151.120
Edge: Not Found
Safari: 18.5
npmPackages:
@emotion/react: 11.11.1 => 11.11.1
@emotion/styled: 11.11.0 => 11.11.0
@mui/icons-material: 7.1.1 => 7.1.1
@mui/lab: 7.0.0-beta.14 => 7.0.0-beta.14
@mui/material: 7.1.2 => 7.1.2
@mui/types: 7.4.3 => 7.4.3
@mui/utils: 7.1.1 => 7.1.1
@mui/x-charts: 8.6.0 => 8.6.0
@mui/x-charts-pro: 8.6.0 => 8.6.0
@mui/x-data-grid-premium: 8.6.0 => 8.6.0
@mui/x-date-pickers-pro: 8.6.0 => 8.6.0
@mui/x-license: 8.6.0 => 8.6.0
@mui/x-tree-view: 8.6.0 => 8.6.0
@types/react: 18.3.21 => 18.3.21
react: 18.3.1 => 18.3.1
react-dom: 18.3.1 => 18.3.1
typescript: 5.8.3 => 5.8.3

Search keywords: charts ChartsYReferenceLineProps

Metadata

Metadata

Labels

scope: chartsChanges related to the charts.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions