# Fail to import "BufferGeometryUtils"

**URL:** <https://discourse.threejs.org/t/fail-to-import-buffergeometryutils/41056>\
**Category:** Questions\
**Tags:** modules, geometry\
**Created:** [August 4, 2022, 2:32am UTC](https://discourse.threejs.org/t/fail-to-import-buffergeometryutils/41056 "2022-08-04T02:32:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenjiro](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kenjiro/32/28506_2.png) [@kenjiro](https://discourse.threejs.org/u/kenjiro)\
**Post date:** [August 4, 2022, 2:32am UTC](https://discourse.threejs.org/t/fail-to-import-buffergeometryutils/41056/1 "2022-08-04T02:32:49Z")

</div>

I want to use THREE.BufferGeometryUtils, so I wrote the following import.

```javascript
import {BufferGeometryUtils} from 'three/examples/jsm/utils/BufferGeometryUtils.js';

```

However, the following error occurs.

```javascript
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.

```javascript
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.

```

---

<div class="post-metadata">

**Author:** ![tfoller](https://avatars.discourse-cdn.com/v4/letter/t/3e96dc/32.png) [@tfoller](https://discourse.threejs.org/u/tfoller)\
**Post date:** [August 4, 2022, 2:59am UTC](https://discourse.threejs.org/t/fail-to-import-buffergeometryutils/41056/2 "2022-08-04T02:59:19Z")

</div>

BufferGeometryUtils  
[https://unpkg.com/three@0.143.0/examples/jsm/utils/BufferGeometryUtils.js](https://unpkg.com/three@0.143.0/examples/jsm/utils/BufferGeometryUtils.js)

has the following export:

export {  
computeTangents,  
computeMikkTSpaceTangents,  
mergeBufferGeometries,  
mergeBufferAttributes,  
interleaveAttributes,  
estimateBytesUsed,  
mergeVertices,  
toTrianglesDrawMode,  
computeMorphedAttributes,  
mergeGroups  
};

so if you need to use a specific function, say **computeTangents** , you can

```javascript
import { computeTangents } from 'three/examples/jsm/utils/BufferGeometryUtils.js';

```

or import everything

```javascript
import * as BGU from 'three/examples/jsm/utils/BufferGeometryUtils.js';

```

and then call it l ike so:

```javascript
BGU.computeTangents();

```

---

<div class="post-metadata">

**Author:** ![kenjiro](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/kenjiro/32/28506_2.png) [@kenjiro](https://discourse.threejs.org/u/kenjiro)\
**Post date:** [August 4, 2022, 3:44am UTC](https://discourse.threejs.org/t/fail-to-import-buffergeometryutils/41056/3 "2022-08-04T03:44:24Z")

</div>

Thank you very much. Resolved.  
Sorry for the elementary question.
