Importing bootstrap.scss breaks SASS compilation for tables component #40759
Replies: 2 comments
-
Hey, I've converted this to a discussion for now since it seems that the issue is project specific and not coming from Bootstrap. It seems that the |
Beta Was this translation helpful? Give feedback.
-
Did you perhaps insert the value into the key part of // Wrong code (your expected code)
$table-variants: (
...
`"#3A84FF": .........
...
)
// Right code
$table-variants: (
...
`"yourcustomcolorname": #3A84FF
...
) If you haven't configured it as above, please check the original code below and diagnose the current issue yourself. $table-variants: (
"primary": shift-color($primary, $table-bg-scale),
"secondary": shift-color($secondary, $table-bg-scale),
"success": shift-color($success, $table-bg-scale),
"info": shift-color($info, $table-bg-scale),
"warning": shift-color($warning, $table-bg-scale),
"danger": shift-color($danger, $table-bg-scale),
"light": $light,
"dark": $dark,
) !default; @each $color, $value in $table-variants {
@include table-variant($color, $value);
} |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
Describe the issue
Operating system and version: WIndows 11
Browser and version: Chrome 127
I'm using bootstrap 5.3.3 now in my next (version - 14.2.5) app.
I've started migraton from v4 --> v5 and I get this error, before it worked cool. Can you please help me figure out if issue is coming from my app side. When I'm commenting seperate tables import it's working fine. It's coming from attached image part of code.
Reduced test cases
migate bootstrap from v4 to v5
run next js app
import bootstrap/table
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome, Firefox
What version of Bootstrap are you using?
v5.3.3
Beta Was this translation helpful? Give feedback.
All reactions