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

44 lines
1.2 KiB
Markdown

# 🔧 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
```bash
cd ui
rm -rf node_modules/.cache .webpack-cache
```
### 2. Restart Dev Server
The dev server must be restarted after clearing cache:
```bash
DISABLE_HTTPS=true pnpm dev-server
```
### 3. Warning Suppression Added
Updated `webpack-config.js` to suppress warnings from cached paths:
```javascript
/@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.8` even though 7.0.29 is installed
## Verification
After restarting:
1. Check installed version: `pnpm list @react-three/fiber` → should show `7.0.29`
2. Warning should be suppressed (or gone after cache clear)
3. 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.