Commit 51a30a5
Fix webpack config error with undefined scss rule
The webpack config was failing with "Cannot read properties of undefined
(reading 'push')" because the SCSS rule might not exist or might not have
a 'use' property in Shakapacker 9.3.0's generated config.
Added proper guard check before attempting to push to the scss config's
use array.
Error was:
TypeError: Cannot read properties of undefined (reading 'push')
at commonWebpackConfig.js:27:59
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 54c2e1e commit 51a30a5
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments