Forum Discussion

John Condron's avatar
John Condron
Brass Contributor
May 09, 2018

SPFx Error Running Sample - Error: File to import not found or unreadable: node_modules/office-ui-fa

Hi All,

 

I'm trying to run the following sample: https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-list-form

 

I navigated to the folder and ran "npm i"

 

When I run "gulp serve" I get the following error:

Error in plugin 'sass'
Message:
src\common\_theming.module.scss
Error: File to import not found or unreadable: node_modules/office-ui-fabric-react/dist/sass/References.
Parent style sheet: C:<my local path>/sp-dev-fx-webparts-master/samples/react-list-form/src/common/_theming.module.scss
on line 1 of src/common/_theming.module.scss
>>  @import '~office-ui-fabric-react/dist/sass/References';

 

To be honest, I've no idea where to start with figuring out what's wrong.  I've googled for answers but nothing really made sense.  I know that's all a bit vague, but if anyone can give me a kick in the right direction that would be great.

 

Thanks...

 

John

Resources