Forum Discussion
Has anyone got the fabric ui - group list - https://dev.office.com/fabric#/components/groupedlist
hi
has anyone got the fabric ui example - group list to work ?
i have tried and hit issues where NPM complains about wrong versions, missing files as does gulp.
thanks
Nigel
- Thomas BakBrass Contributor
I got it working back in April and that project still works fine.
It's my understanding that the Fabric is now included when scaffolding a project using the SharePoint Framework template but I haven't verified it. Not sure if this was always the case or something new since April but back then I added it myself:
yo @microsoft/sharepoint npm --save install office-ui-fabric-react npm --save install @uifabric/example-app-base
Did you add the example code (last line)?
- Nigel_Price9911Iron Contributor
These are the error messages I am getting :-
Error - typescript - node_modules\office-ui-fabric-react\lib\components\FocusZone\FocusZone.Props.d.ts(50,30): error TS2694: Namespace 'React' has no exported member 'ReactHTML'.
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' sub task errored after 3.74 s
"TypeScript error(s) occurred."- Thomas BakBrass Contributor
Could you try scaffolding a new project and see if the problem persists?
SPFx and Yeoman has been updated so get the latest versions of those if it doesn't disrupt anything for you.