Skip to content

Commit 8d34d0a

Browse files
justin808claude
andcommitted
Remove redundant SCSS @import statements
The sass-resources-loader webpack plugin automatically injects app-variables.scss into all SCSS files, making manual @import statements redundant and potentially problematic. The previous fix attempted to import app-variables.scss to resolve undefined $bright-color variables, but this caused issues with React Server Components builds. The variables are already available through the webpack sass-resources-loader configuration. Changes: - spec/dummy/client/app/components/HelloWorld.module.scss: Remove @import - react_on_rails_pro/spec/dummy/client/app/components/HelloWorld.module.scss: Remove @import Fixes React Router Sixth Page RSC test failure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 706d9eb commit 8d34d0a

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import "../assets/styles/app-variables.scss";
2-
31
.brightColor {
42
color: $bright-color;
53
}
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import "../assets/styles/app-variables.scss";
2-
31
.brightColor {
42
color: $bright-color;
53
}

0 commit comments

Comments
 (0)