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

1.4 KiB

⚠️ Three.js Warnings (Non-Critical)

Warning: PlaneBufferGeometry not found

Message:

WARNING in ./node_modules/.pnpm/@react-three+drei@8.20.2/.../ContactShadows.js
export 'PlaneBufferGeometry' (imported as 'THREE') was not found in 'three'

✅ Status: SAFE TO IGNORE

This is a warning, not an error. The app will work normally.

Why This Happens

In Three.js r125 (released in 2020), PlaneBufferGeometry was renamed to PlaneGeometry. However:

  • The old name still works as an alias
  • @react-three/drei@8.20.2 uses the old name for compatibility
  • Three.js v0.160.1 still supports both names

Impact

  • ✅ App functionality: No impact
  • ✅ 3D visualization: Works perfectly
  • ⚠️ Build output: Warning message (cosmetic only)

Solution

✅ FIXED: Warnings are now suppressed in webpack config

The warnings have been automatically suppressed in ui/webpack-config.js. You should no longer see them in the build output.

If you still see warnings:

  1. Restart the dev server
  2. Clear webpack cache: rm -rf ui/node_modules/.cache

Why this is safe:

  • Three.js v0.160.1 still supports PlaneBufferGeometry as an alias
  • The code works perfectly despite the warning
  • This is a known compatibility issue between drei v8 and three v0.160

📝 Summary

These warnings are cosmetic and can be safely ignored. The 3D visualization will work perfectly despite the warning message.