Skip to content

THREE.Clock deprecated: upgrade @react-three/fiber to fix THREE.Timer warning #204

@Interstellar-code

Description

@Interstellar-code

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:1041clock: 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions