SOLVED

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

Brass Contributor

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

1 Reply
best response confirmed by John Condron (Brass Contributor)
Solution

I was attempting to do the same thing with the same webpart and received the same errors. After researching it I came across this post which resolved my issue. Hope it helps. 

https://github.com/SharePoint/sp-dev-fx-webparts/issues/497

1 best response

Accepted Solutions
best response confirmed by John Condron (Brass Contributor)
Solution

I was attempting to do the same thing with the same webpart and received the same errors. After researching it I came across this post which resolved my issue. Hope it helps. 

https://github.com/SharePoint/sp-dev-fx-webparts/issues/497

View solution in original post