1.2 KiB
1.2 KiB
🔧 Cache Fix for React Three Fiber Warning
Issue
Even after downgrading to @react-three/fiber@7.0.29, webpack still shows warnings from cached 8.0.8 version.
Solution
1. Clear Webpack Cache
cd ui
rm -rf node_modules/.cache .webpack-cache
2. Restart Dev Server
The dev server must be restarted after clearing cache:
DISABLE_HTTPS=true pnpm dev-server
3. Warning Suppression Added
Updated webpack-config.js to suppress warnings from cached paths:
/@react-three\+fiber@8\.0\.8/ // Suppress warnings from cached 8.0.8 path
Why This Happens
- pnpm uses a global store that may cache multiple versions
- Webpack may reference cached modules from previous installs
- The warning path shows
@react-three+fiber@8.0.8even though 7.0.29 is installed
Verification
After restarting:
- Check installed version:
pnpm list @react-three/fiber→ should show7.0.29 - Warning should be suppressed (or gone after cache clear)
- 3D features should work normally
If Warning Persists
The warning is now suppressed in webpack config, so it won't show in the build output. The functionality is correct (using 7.0.29), it's just a cached path reference.