Property 'children' does not exist on type 'IntrinsicAttributes & IModalProps'.
When building a SPFx 1.8.2 solution (it started on 1.8) it gives the message:
Property 'children' does not exist on type 'IntrinsicAttributes & IModalProps'.
Environment Information
- Package version(s): (6.143.0)
- Browser and OS versions: (Windows 10)
- rush-stack-compiler: (3.3 or 2.9)
Priorities and help requested:
Are you willing to submit a PR to fix? (No)
Requested priority: (Blocking, Low) It depends
This may be a dupe of #8458. Could you review and see if it applies? Thanks!
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React!
Sorry, I thaught I had made a comment.
No. Its not the same issue.
It's only on the
While the component it's reported against may be different, the compiler error is the same, as is the rush-stack-compiler version. Can you try the steps here and see if they have any effect? Thanks!
I'm on [email protected] and I'm also experiencing this issue.
Type '{ children: Element[]; isDarkOverlay: true; isOpen: boolean; isBlocking: false; onDismiss: () => void; containerClassName: string; }' is not assignable to type 'IntrinsicAttributes & IModalProps'. Property 'children' does not exist on type 'IntrinsicAttributes & IModalProps'.
<Modal
isDarkOverlay={true}
isOpen={this.state.showModal}
isBlocking={false}
onDismiss={this.handleDismiss}
containerClassName={styles.orgChartModal}
>
<IconButton
title='Open in New Window'
iconProps={{iconName: 'OpenInNewWindow'}}
onClick={() => window.open(this.state.myUrl)}
style={{position: 'fixed', left: '6%', zIndex: 9999}}
/>
<IconButton
title='Close'
iconProps={{iconName: 'ChromeClose'}}
onClick={this.handleDismiss}
style={{position: 'fixed', right: '6%', zIndex: 9999}}
/>
<MyCustomComponent />
</Modal>
For me, this is a non-blocking error... everything compiles and works properly so it's not super critical but hoped to clean it up.
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React!
I had some compiling errors at the time But I managed to get it to compile
I have also really similar issue right now, but it's affected by environmental quite strong.
I'm using DialogComtent and get this message: Message: Type '{ children: Element[]; }' has no properties in common with type 'IntrinsicAttributes & IDialogContentProps'.
I use "@microsoft/sp-office-ui-fabric-core": "1.8.2", "@microsoft/rush-stack-compiler-3.2": "0.3.26",
Everything looks fine just one problem in Problems tab, but when I try to use webpart with this Dialog after click on icon my screen grayout and nothing happened:

I have try to use this solution https://github.com/OfficeDev/office-ui-fabric-react/issues/8458#issuecomment-478388791 but unfortunately doesn't work
P.S. In console I did not see any errors.
I have the same issue know with "typescript": "3.3.4000", Do we have any workaround solution yet?
Using typescript 3.2.4 vs rush-stack-compiler-3.2 works for me even though the error still show in VS but it compiled and built successfully
cc @aditima @KevinTCoughlin
Using typescript 3.2.4 vs rush-stack-compiler-3.2 works for me even though the error still show in VS but it compiled and built successfully
Hi, could you please share your package.json? Are you using it like this?:
"devDependencies": {
"@microsoft/rush-stack-compiler-3.2": "0.3.2",
Using typescript 3.2.4 vs rush-stack-compiler-3.2 works for me even though the error still show in VS but it compiled and built successfully
Hi, could you please share your package.json? Are you using it like this?:
"devDependencies": { "@microsoft/rush-stack-compiler-3.2": "0.3.2",
Hi @chotkos,
"devDependencies": {
"@microsoft/rush-stack-compiler-3.2": "0.2.3",
"@microsoft/sp-build-web": "1.8.2",
"@microsoft/sp-module-interfaces": "1.8.2",
"@microsoft/sp-tslint-rules": "1.8.2",
"@microsoft/sp-webpart-workbench": "1.8.2",
"@types/chai": "3.4.34",
"@types/mocha": "2.2.38",
"ajv": "~5.2.2",
"gulp": "~3.9.1",
"typescript": "3.2.4"
}
Hey Assigned Owner, just wanted to gently ping that this issue needs attention. If you've already taken a look, make sure to remove the "Needs: Attention" and "Status: No Recent Activity" labels so that I can be aware. Thank you!