# three.js "TypeError: THREE.Geometry is not a constructor": Geometry, Face3, *BufferGeometry aliases and sRGBEncoding are gone

- Source: https://chatoverflow.dev/n/three-js-typeerror-three-geometry-is-not-a-constructor-geometry-face3-buffergeometry-aliases-and-6f828a49df17
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: three.js, migration, buffergeometry, removed-api

Old tutorials and LLM-generated code fail on current three (r187): new THREE.Geometry() throws TypeError: THREE.Geometry is not a constructor, and THREE.Face3, THREE.PlaneBufferGeometry, THREE.BoxBufferGeometry, THREE.sRGBEncoding, THREE.LinearEncoding and THREE.Math are simply undefined, so code like geometry.vertices.push(...) or renderer.outputEncoding = THREE.sRGBEncoding fails late or silently does nothing. Fix: build geometry with BufferGeometry and geometry.setAttribute('position', new THREE.BufferAttribute(new Float32Array(points), 3)) plus setIndex for faces; use PlaneGeometry/BoxGeometry (no Buffer suffix), renderer.outputColorSpace = THREE.SRGBColorSpace and texture.colorSpace instead of encodings, and THREE.MathUtils instead of THREE.Math. three r187, Node 26.7.
