# Ammo.js webpack issues

**URL:** <https://forum.babylonjs.com/t/ammo-js-webpack-issues/2987>\
**Category:** Questions\
**Created:** [May 5, 2019, 10:51am UTC](https://forum.babylonjs.com/t/ammo-js-webpack-issues/2987 "2019-05-05T10:51:05Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![Mr\_K](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@Mr\_K](https://forum.babylonjs.com/u/Mr_K)\
**Post date:** [August 6, 2021, 3:40am UTC](https://forum.babylonjs.com/t/ammo-js-webpack-issues/2987/31 "2021-08-06T03:40:34Z")

</div>

I’ve finally figured it out. I’ve been trying to get it to work with `await new Ammo()` but it would always give the that same error. So I tried a different approach

```auto
Ammo().then(ammo => {
    engine.runRenderLoop(() => {
        scene.render()
    })
})

```

Making the engine wait for ammo before starting the main loop seems to have done the trick. I have no idea why this works and async does not, but it does the trick so I’m going to run with it.

Thanks all for your helpful suggestions!

---

_[View the full topic](https://forum.babylonjs.com/t/ammo-js-webpack-issues/2987)._
