# AmmoJSPlugin issue from the past 8 hours (cdn and preview)

**URL:** <https://forum.babylonjs.com/t/ammojsplugin-issue-from-the-past-8-hours-cdn-and-preview/16991>\
**Category:** Bugs\
**Created:** [December 29, 2020, 7:09am UTC](https://forum.babylonjs.com/t/ammojsplugin-issue-from-the-past-8-hours-cdn-and-preview/16991 "2020-12-29T07:09:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [December 29, 2020, 7:09am UTC](https://forum.babylonjs.com/t/ammojsplugin-issue-from-the-past-8-hours-cdn-and-preview/16991/1 "2020-12-29T07:09:07Z")

</div>

Dears,  
I woke up this morning and AmmoJS was not working anymore in any of my version scene.  
I saw a discussion from yesterday regarding changes for packaging. May be one of these changes caused the issue. Can you have a look if it’s a bug or else tell me how to load the new version plugin successfully.  
Thanks a lot,

 ![Capture d’écran 2020-12-29 à 08.00.22](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/1/11629c25f0130b841ac1a63b55fd501a78c8a541.png)

---

<div class="post-metadata">

**Author:** ![gbz](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/gbz/32/23780_2.png) [@gbz](https://forum.babylonjs.com/u/gbz)\
**Post date:** [December 29, 2020, 8:18am UTC](https://forum.babylonjs.com/t/ammojsplugin-issue-from-the-past-8-hours-cdn-and-preview/16991/2 "2020-12-29T08:18:13Z")

</div>

Hi @mawa, could you try running

```auto
await Ammo();

```

in an `async` function before

`scene.enablePhysics(...)`

or you could use `.then(...)` like

```auto
Ammo().then(Ammo => {
    scene.enablePhysics(...)
});

```

For your reference, this was recently changed in [Ammo: TypeError on reloading Playground (Need to click Play button to bypass error)](https://forum.babylonjs.com/t/ammo-typeerror-on-reloading-playground-need-to-click-play-button-to-bypass-error/16891/12) 🙂

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [December 29, 2020, 10:56am UTC](https://forum.babylonjs.com/t/ammojsplugin-issue-from-the-past-8-hours-cdn-and-preview/16991/3 "2020-12-29T10:56:03Z")

</div>

I will add it to the list of breaking changes, I completely forgot to do.

@mawa, this is not really our choice, but Ammo changed its initialization and made it async so we can not rely anymore on the engine to initialize it ☹

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [December 29, 2020, 10:57am UTC](https://forum.babylonjs.com/t/ammojsplugin-issue-from-the-past-8-hours-cdn-and-preview/16991/4 "2020-12-29T10:57:13Z")

</div>

Yes, thank you.  
Good practice anyway, I suppose… but ya know how it is: as long as it works… 😉

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [December 29, 2020, 11:21am UTC](https://forum.babylonjs.com/t/ammojsplugin-issue-from-the-past-8-hours-cdn-and-preview/16991/5 "2020-12-29T11:21:49Z")

</div>

Yes, I get it and thanks for the reply. As I said probably part of good practice.  
Another good practice would be to be advised of such type of changes in architecture before updating cdn. (I suppose). On the other hand, reactivity for this kind of issues in BJS is awesome. Can’t have everything, now can you?  
Have a beautiful day,
