You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: fluentui/react-component types break with TS exactOptionalPropertyTypes #25993
Using exactOptionalPropertyTypes breaks fluentui component types with error TS2604: JSX element type 'Button' does not have any construct or call signatures. errors. It appears to be because this type resolves to never:
If you change exactOptionalPropertyTypes to false in this CodeSandbox and reload, it will resolve the type error.
Expected Behavior
Can render fluentui components with exactOptionalPropertyTypes enabled. This issue is preventing us from adopting exactOptionalPropertyTypes for improved typing.
Logs
No response
Requested priority
High
Products/sites affected
No response
Are you willing to submit a PR to fix?
no (this type is pretty core to fluentui and I wouldn't want to break other uses, but I'm willing to try and help narrow this as a fluentui vs. TS issue, if needed)
Validations
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
The provided reproduction is a minimal reproducible example of the bug.
changed the title [-][Bug]: fluentui component types break with TS exactOptionalPropertyTypes[/-][+][Bug]: fluentui/react-component types break with TS exactOptionalPropertyTypes[/+]on Dec 14, 2022
This issue, specifically JSX element type ... does not have any construct or call signatures is present in my project without exactOptionalPropertyTypes with react-components version 9.9.1. I locked my dependency to 9.6.1 where the issue is not present. In both configurations, react-utilities is at version 9.4.0.
Activity
[-][Bug]: fluentui component types break with TS exactOptionalPropertyTypes[/-][+][Bug]: fluentui/react-component types break with TS exactOptionalPropertyTypes[/+]MatthewSkingley commentedon Jan 13, 2023
This issue, specifically
JSX element type ... does not have any construct or call signaturesis present in my project without exactOptionalPropertyTypes with react-components version 9.9.1. I locked my dependency to 9.6.1 where the issue is not present. In both configurations, react-utilities is at version 9.4.0.msft-fluent-ui-bot commentedon Jun 23, 2023
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.
Still require assistance? Please, create a new issue with up-to date details.
yuhr commentedon Jun 24, 2023
Can't use this library due to this problem.
dahagag commentedon Aug 15, 2023
Same
microsoft-github-policy-service commentedon Jan 12, 2024
Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.
Still require assistance? Please, create a new issue with up-to date details.
chore: enable exactOptionalPropertyTypes across the repository (#765)
MAINT: Narrow exactOptionalPropertyTypes widening in frontend