0

I am building my first react webpart. While running the gulp build I am getting the following error.

Error - 'sass' sub task errored after 111 ms
Can't find stylesheet to import.
  ╷
1 │ @import '~@fluentui/react/dist/sass/References.scss';
  │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
src\webparts\reactWebpart\components\ReactWebpart.module.scss 1:9  root stylesheet

I am not sure why this is an error, as I have not customized anything after running the sharepoint webpart react command.

Laurel
  • 5,965
  • 14
  • 31
  • 57
user388969
  • 337
  • 1
  • 9
  • 30

1 Answers1

0

Check closely SPFx Development Setup at https://learn.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment

This happend to me recently, and I think it was because of installing gulp instead of gulp-cli. A second yeoman deploy rendered a solution that compiled without the error, and that was the only change made.