I want to use THREE.BufferGeometryUtils, so I wrote the following import.
import {BufferGeometryUtils} from 'three/examples/jsm/utils/BufferGeometryUtils.js';
However, the following error occurs.
TS2305: Module '"three/examples/jsm/utils/BufferGeometryUtils.js"' has no exported member 'BufferGeometryUtils'.
6 | import * as THREE from 'three';
7 | import {GLTFLoader} from 'three/examples/jsm/loaders/GLTFLoader';
> 8 | import {BufferGeometryUtils} from 'three/examples/jsm/utils/BufferGeometryUtils.js';
I tried “npm install three-buffer-geometry-utils” but the situation remains the same. Please let me know how to solve this problem.
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
up to date, audited 1270 packages in 5s
205 packages are looking for funding
run `npm fund` for details
6 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.