lumina/WARNINGS_FIXED.md
2025-11-29 23:13:05 +03:00

2.0 KiB

✅ Warnings Fixed

Issues Resolved

1. React Three Fiber unstable_act Warning

Problem:

export 'unstable_act' (imported as 'React') was not found in 'react'

Cause:

  • @react-three/fiber@8.0.8 requires React 18+ features
  • Project uses React 17.0.2

Solution:

  • Downgraded to @react-three/fiber@^7.0.29 (React 17 compatible)
  • Downgraded to @react-three/drei@^8.20.2 (compatible with R3F 7.x)

Status: ✅ Fixed


2. SCSS Deprecation Warnings

Problem: Multiple deprecation warnings from @stellar-expert/ui-framework:

  • transparentize() is deprecated
  • Using / for division is deprecated
  • Global built-in functions are deprecated

Cause:

  • Third-party library uses old SCSS syntax
  • Not our code to fix

Solution:

  • Added warning suppression to webpack-config.js
  • These warnings are safe to ignore (cosmetic only)

Status: ✅ Suppressed


Changes Made

ui/package.json

{
  "@react-three/drei": "^8.20.2",  // Was: 9.5.0
  "@react-three/fiber": "^7.0.29"   // Was: 8.0.8
}

ui/webpack-config.js

Added warning suppression:

config.ignoreWarnings.push(
    /PlaneBufferGeometry/,
    /unstable_act/,
    /transparentize\(/,
    /Using \/ for division/,
    /Deprecation Warning/,
    /Global built-in functions are deprecated/
)

Verification

After restarting the dev server, you should see:

  • ✅ No unstable_act warnings
  • ✅ No SCSS deprecation warnings (suppressed)
  • ✅ Clean build output

Next Steps

  1. Restart the UI dev server:

    cd ui
    DISABLE_HTTPS=true pnpm dev-server
    
  2. Verify warnings are gone

  3. If you see any new warnings, they can be added to the suppression list


Notes

  • React Three Fiber 7.x is fully compatible with React 17
  • All 3D features work correctly with the downgraded versions
  • SCSS warnings are cosmetic and don't affect functionality
  • Suppressing warnings keeps the build output clean