1.8 KiB
1.8 KiB
✅ SCSS Deprecation Warnings - Fixed
Problem
SCSS deprecation warnings from @stellar-expert/ui-framework (third-party library) were appearing in webpack build output:
transparentize()is deprecated- Using
/for division is deprecated - Global built-in functions are deprecated
Solution Implemented
1. Updated sass-loader Configuration
File: ui/webpack-config.js (lines 15-24)
Changed:
sassOptions: {
quietDeps: true,
silenceDeprecations: ['import'] // Only silenced import deprecations
}
To:
sassOptions: {
quietDeps: true,
silenceDeprecations: true, // Silences ALL deprecations
logger: {
warn: () => {} // Suppress all sass warnings to console
}
}
2. Enhanced Webpack Warning Filters
File: ui/webpack-config.js (lines 59-76)
Added new patterns to ignoreWarnings:
/Module Warning \(from.*sass-loader/- Catches sass-loader module warnings/Deprecation Warning.*sass-loader/- Catches deprecation warnings from sass-loader/@stellar-expert\+ui-framework.*\.scss/- Catches all warnings from ui-framework SCSS files
Expected Outcome
- ✅ All SCSS deprecation warnings suppressed
- ✅ Clean build output without deprecation warnings
- ✅ No functional impact (warnings are cosmetic only)
- ✅ Third-party library code remains unchanged
Testing
After restarting the dev server:
cd ui
DISABLE_HTTPS=true pnpm dev-server
You should see:
- ✅ No SCSS deprecation warnings in build output
- ✅ App functionality unchanged
- ✅ Compilation succeeds
Notes
- These warnings are from a third-party library (
@stellar-expert/ui-framework) - The warnings are cosmetic and don't affect functionality
- The library will need to update their SCSS code in the future, but for now, suppression is the appropriate solution