You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix webpack SCSS rule handling for Shakapacker 9.1.0
Shakapacker 9.1.0 changed how webpack rules are structured. The
findIndex approach was failing because it returned -1 when no SCSS
rule was found, causing "Cannot read properties of undefined".
Updated to use forEach pattern (matching main spec/dummy) which:
- Safely iterates through all rules
- Checks if rule.use is an array before accessing it
- Handles multiple SCSS rules if present
This fixes the build error:
"TypeError: Cannot read properties of undefined (reading 'push')"
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments