5

I'm experiencing build errors when adding

 <TextField label='TextField with an icon' iconProps={ { iconName: 'Calendar' } } /> 

resulting with this error on gulp build

Error - typescript - node_modules\office-ui-fabric-react\lib\components\Image\Image.Props.d.ts(3,43): error TS2694: Namespace 'React' has no exported member 'ImgHTMLAttributes'. Error - typescript - node_modules\office-ui-fabric-react\lib\components\TextField\TextField.Props.d.ts(24,47): error TS2694: Namespace 'React' has no exported member 'AllHTMLAttributes'. Error - 'typescript' sub task errored after 2.24 s "TypeScript error(s) occurred."

I think it may be because of the typescript compiler which is in version 2.2.2

Anybody experiencing the same?

4
  • i have the same error today... Commented Aug 7, 2017 at 14:29
  • I could not find a solution.. Commented Aug 7, 2017 at 14:37
  • 2
    Yes this seems to be the same issue logged on GitHub: github.com/SharePoint/sp-dev-docs/issues/765 Commented Aug 7, 2017 at 15:05
  • Looking into it - Can you see what version of OUIFR is installed? Commented Aug 7, 2017 at 16:35

1 Answer 1

6

The latest OUIFR release is not compatible with SPFX at this point. You should install version 4.28.0 of OUIFR.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.