Closed kofrimpong closed 1 month ago
Could you give the sample .scss file where the error is reproducible?
webpartBundle.module.scss
.listItem {
display: inline;
}
.button {
height: 88px;
background-clip: padding-box;
border: 1px solid transparent;
margin: 0;
padding: 0;
display: inline-block;
vertical-align: middle;
overflow: hidden;
width: 94px;
background: transparent;
&:hover {
background-color: "[theme:themeLighter, default: #f3f2f1]";
.label {
color: "[theme:themePrimary, default: #0078d4]";
}
.icon {
color: "[theme:themePrimary, default: #0078d4]";
}
}
}
.flexContainer {
justify-content: flex-start;
align-items: center;
flex-wrap: nowrap;
height: 100%;
display: flex;
text-align: center;
}
.textContainer {
padding: 10px 6px 0;
align-items: center;
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100%;
justify-content: flex-start;
width: 100%;
}
.icon {
font-size: 28px;
height: 28px;
line-height: 28px;
min-height: 28px;
width: 82px;
color: #323130;
svg{
height: 28px;
}
}
.label {
font-size: 12px;
margin-top: 10px;
color: #323130;
font-weight: 400;
line-height: 17px;
max-width: 100%;
}
Announcement.module.scss
@import "~@fluentui/react/dist/sass/References.scss";
.announcemement {
position: relative;
height: 100%;
width: 100%;
overflow: hidden;
background-color: "[theme: newtralLight, default: #eaeaea]";
.lens {
transition: transform 0.75s cubic-bezier(0.1, 0.2, 0, 1);
transform-style: preserve-3d;
width: 100%;
height: 100%;
}
.announcemementValidations {
padding-top: 0;
padding-left: 20px;
padding-right: 20px;
padding-bottom: 20px;
margin-top: -10px;
width: max-content;
margin-left: auto;
margin-right: auto;
}
.announcemementError {
background-color: $ms-color-neutralLighter;
border: 1px solid $ms-color-neutralQuaternaryAlt;
padding: 20px;
text-align: center;
}
.incomplete {
color: $ms-color-red;
font-weight: 700;
}
.complete {
color: $ms-color-green;
font-weight: 700;
}
}
Hi, any updates? I have the same problem.
Have you tried spfx-fast-serve-helpers@1.19.3?
Have you tried spfx-fast-serve-helpers@1.19.3?
Yes, it's same.
@devspfx @kofrimpong I cannot reproduce this problem in my environment, but I have some idea what might cause this weired behaviour.
Could you install beta version - npm i spfx-fast-serve-helpers@1.19.5-beta.0 -DE
and check if it works for you?
I just tried it and it's the same. I see how the build works in 5-6-7 seconds, which is very good, but I can't get rid of this error..
@devspfx could you share your package-lock.json and package.json?
I attached the files: package.json package-lock.json
I'm still trying to find the proper fix for this, but meanwhile it looks like the workaround for this issue would be just runing npm i schema-utils@4.2.0 -DE
. Could you try it?
Hi @s-KaiNet , sorry for delay.
Now is working as expected with "schema-utils": "4.2.0". Thank you for your valuable help.
The issue is fixed in npm i spfx-fast-serve-helpers@1.19.5 -DE
I am having the following error for all scss.module files.
Environment spfx: 1.19.0 npm: 10.7.0 node: 18.20.3 spfx-fast-serve-helpers: 1.19.2
I had the same issue with spfx-fast-serve-helpers: 1.19.0, updating didn't help.
Thanks