Skip to content

Bug - [react-charts] - [TypeError: Cannot read property 'primitiveProps' of undefined] #10064

@sjha4

Description

@sjha4

Describe the problem
import { ChartPie } from '@patternfly/react-charts';
fails with

TypeError: Cannot read property 'primitiveProps' of undefined
at Object.<anonymous> (../foreman/node_modules/@patternfly/react-charts/src/components/ChartCursorTooltip/ChartCursorFlyout.tsx:111:18)
      at Object.<anonymous> (../foreman/node_modules/@patternfly/react-charts/src/components/ChartCursorTooltip/index.ts:1:1)

This is probably because the package victory-core had a new release 36.9.0 which includes this change:
FormidableLabs/victory#2758
which seems to break the following use of CommonProps

import { Helpers, CommonProps, Path } from 'victory-core';

How do you reproduce the problem?
importing from '@patternfly/react-charts'; for version 6.94.15 throws this error. Likely reproducible in other 6.94.z versions.

Is this issue blocking you?
We'll probably pin victory-core package at an older version locally.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions