@microsoft/generator-sharepoint updated to @fluentui version 8 which does NOT use scss
[Enter feedback here] Generate a project today and throws the following error: [14:21:07] Error - sass - src\webparts\secondChance\components\SecondChance.module.scss(1,9): error Error: Can't find stylesheet to import. ╷ 1 │ @import '~@fluentui/react/dist/sass/References.scss'; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ src\webparts\secondChance\components\SecondChance.module.scss 1:9 root stylesheet
after a lot of trying things I found that @fluentui-react is now version 8, which does not use scss.
Used npm i @fluentui/[email protected] and now the project builds/
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 6c25a90e-829c-b436-d8ab-f9c010588ee1
- Version Independent ID: 768fa9a1-2375-fb5a-be58-cb66320cc789
- Content: Build your first SharePoint client-side web part (Hello World part 1)
- Content Source: docs/spfx/web-parts/get-started/build-a-hello-world-web-part.md
- Service: sharepoint
- Sub-service: sharepoint-framework
- GitHub Login: @VesaJuvonen
- Microsoft Alias: vesaj
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Dupe of #8939
Closing this issue as a dupe. Please refer to our wiki for more details: Issue List Labels: status:duplicate