# "No such file or directory" ... "./build/HavokPhysics.wasm"

**URL:** <https://forum.babylonjs.com/t/no-such-file-or-directory-build-havokphysics-wasm/48476>\
**Category:** Bugs\
**Tags:** physics, import, havok\
**Created:** [March 4, 2024, 2:46am UTC](https://forum.babylonjs.com/t/no-such-file-or-directory-build-havokphysics-wasm/48476 "2024-03-04T02:46:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thomas/32/29205_2.png) [@thomas](https://forum.babylonjs.com/u/thomas)\
**Post date:** [March 4, 2024, 2:46am UTC](https://forum.babylonjs.com/t/no-such-file-or-directory-build-havokphysics-wasm/48476/1 "2024-03-04T02:46:59Z")

</div>

I’m getting this error in my server when trying to add Havok to my project:

```auto
ENOENT: No such file or directory
   errno: -2
 syscall: "open"
   path: "./build/HavokPhysics.wasm"

```

And this error in console:

```auto
index.js:410708 
 
 GET http://localhost:3000/build/HavokPhysics.wasm 500 (Internal Server Error)
getBinaryPromise	@	index.js:410708
instantiateArrayBuffer	@	index.js:410738
(anonymous)	@	index.js:410754
Promise.then (async)		
(anonymous)	@	index.js:410751
Promise.then (async)		
instantiateAsync	@	index.js:410749
createWasm	@	index.js:410770
(anonymous)	@	index.js:411849
startGame	@	index.js:412361
await in startGame (async)		
(anonymous)

```

You can see where I try to add Havok on this branch: [Adding Havok by ThomasBurgess2000 · Pull Request #10 · ThomasBurgess2000/boxcar · GitHub](https://github.com/ThomasBurgess2000/boxcar/pull/10)

I’m using bun in case that matters

---

<div class="post-metadata">

**Author:** ![thomas](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thomas/32/29205_2.png) [@thomas](https://forum.babylonjs.com/u/thomas)\
**Post date:** [March 4, 2024, 5:17am UTC](https://forum.babylonjs.com/t/no-such-file-or-directory-build-havokphysics-wasm/48476/2 "2024-03-04T05:17:29Z")

</div>

This appears to be a bug with Bun, will switch bundlers. (although I get a different error with vite, will consult other threads that are related to this “magic word” issue).

EDIT:

I was able to resolve the bun issue by manually copying HavokPhysics.wasm to the build folder.
