Are you willing to submit a PR to fix? No
Requested priority: High
Products/sites affected: Office UI Fabric
When building with TS, the following error is output:
TS error on build:
./node_modules/office-ui-fabric-react/lib/components/Calendar/Calendar.d.ts:23:9
TS2411: Property 'monthPicker' of type 'CalendarMonth' is not assignable to string index type 'ReactInstance'.
Builds that depend on office-ui-fabric-react fail.
Builds that depend on office-ui-fabric-react succeed.
Update title
I had the same issue.
D:\Testing\node_modules\office-ui-fabric-react\lib\components\Calendar\Calendar.d.ts
(22,9): error TS2411: Property 'monthPicker' of type 'CalendarMonth' is not assignable to string index type 'ReactInstance'.
"office-ui-fabric-core": ">=7.1.2 <8.0.0",
"office-ui-fabric-react": ">=4.35.0 <5.0.0",
"typescript": "^2.4.2"
I just started hitting this today. For me, the problem seemed to be caused by moving to typescript 2.6.1 vs 2.6.0-rc2 but that does not appear to the case for others based on the notes above. It could be some combination of compiler and versions of @types/react.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!
We believe this was a temporary issue at the time and will close this issue. If it still repros for you, please open a new bug.
Most helpful comment
I just started hitting this today. For me, the problem seemed to be caused by moving to typescript 2.6.1 vs 2.6.0-rc2 but that does not appear to the case for others based on the notes above. It could be some combination of compiler and versions of
@types/react.