fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Bug]: mergeStyles types lead to "error TS2589: Type instantiation is excessively deep and possibly infinite"

Open spmonahan opened this issue 1 year ago • 3 comments

Library

React / v8 (@fluentui/react)

System Info

n/a

Are you reporting Accessibility issue?

no

Reproduction

https://github.com/microsoft/fluentui/blob/master/packages/merge-styles/src/mergeStyles.ts#L9

Bug Description

Actual Behavior

Type changes in #30689 can lead to TS build errors due to the complexity of the types.

mergeStyles.ts

IStyle.ts and IRawStyle.ts

Expected Behavior

Types should build.

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] The provided reproduction is a minimal reproducible example of the bug.

spmonahan avatar May 24 '24 18:05 spmonahan