Summary
THREE.Clock: This module has been deprecated. Please use THREE.Timer instead. appears in the browser console whenever /matrix3d is visited.
Root cause
The warning originates inside @react-three/fiber (not project source code). The R3F dist bundle (node_modules/@react-three/fiber/dist/events-f19bcc32.cjs.dev.js, line 1041) constructs new THREE.Clock() internally as part of its render loop. three.js v0.184.0 (current install) deprecated THREE.Clock and recommends THREE.Timer.
Evidence
- three.js version:
0.184.0 (node_modules/three/package.json)
- R3F internal usage:
node_modules/@react-three/fiber/dist/events-f19bcc32.cjs.dev.js:1041 → clock: new THREE__namespace.Clock()
- No direct
THREE.Clock usage in project source (src/)
Impact
Console noise only — no functional breakage. Continued three.js major upgrades may eventually make this a hard error.
Fix direction
Update @react-three/fiber to a version that uses THREE.Timer internally. Check R3F changelog/releases for the version that drops THREE.Clock. Alternatively pin three.js to the last version before the deprecation if R3F compatibility requires it. Low priority — tech debt.
Summary
THREE.Clock: This module has been deprecated. Please use THREE.Timer instead.appears in the browser console whenever/matrix3dis visited.Root cause
The warning originates inside
@react-three/fiber(not project source code). The R3F dist bundle (node_modules/@react-three/fiber/dist/events-f19bcc32.cjs.dev.js, line 1041) constructsnew THREE.Clock()internally as part of its render loop. three.js v0.184.0 (current install) deprecatedTHREE.Clockand recommendsTHREE.Timer.Evidence
0.184.0(node_modules/three/package.json)node_modules/@react-three/fiber/dist/events-f19bcc32.cjs.dev.js:1041→clock: new THREE__namespace.Clock()THREE.Clockusage in project source (src/)Impact
Console noise only — no functional breakage. Continued three.js major upgrades may eventually make this a hard error.
Fix direction
Update
@react-three/fiberto a version that usesTHREE.Timerinternally. Check R3F changelog/releases for the version that dropsTHREE.Clock. Alternatively pin three.js to the last version before the deprecation if R3F compatibility requires it. Low priority — tech debt.