fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Property 'children' does not exist on type 'IntrinsicAttributes & IModalProps'.

Open Dangerous-Mind opened this issue 7 years ago • 14 comments

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

Dangerous-Mind avatar May 31 '19 18:05 Dangerous-Mind

This may be a dupe of #8458. Could you review and see if it applies? Thanks!

JasonGore avatar May 31 '19 19:05 JasonGore

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!

msft-github-bot avatar Jun 07 '19 18:06 msft-github-bot

Sorry, I thaught I had made a comment. No. Its not the same issue. It's only on the element from office fabric.

Dangerous-Mind avatar Jun 07 '19 21:06 Dangerous-Mind

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!

JasonGore avatar Jun 07 '19 22:06 JasonGore

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.

gschwendt avatar Jun 10 '19 14:06 gschwendt

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!

msft-github-bot avatar Jun 14 '19 15:06 msft-github-bot

I had some compiling errors at the time But I managed to get it to compile

Dangerous-Mind avatar Jun 14 '19 17:06 Dangerous-Mind

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: DialogBug

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.

kodofix avatar Jul 23 '19 11:07 kodofix

I have the same issue know with "typescript": "3.3.4000", Do we have any workaround solution yet?

nguyentoantuit avatar Jul 24 '19 07:07 nguyentoantuit

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

OverkillTV avatar Jul 27 '19 05:07 OverkillTV

cc @aditima @KevinTCoughlin

cliffkoh avatar Aug 13 '19 02:08 cliffkoh

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",

chotkos avatar Sep 08 '19 13:09 chotkos

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"
  }

OverkillTV avatar Sep 09 '19 08:09 OverkillTV

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!

msft-github-bot avatar Dec 02 '19 17:12 msft-github-bot