# Babylon not working?

**URL:** <https://forum.babylonjs.com/t/babylon-not-working/22982>\
**Category:** Questions\
**Created:** [August 11, 2021, 8:33am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982 "2021-08-11T08:33:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DOEHOONLEE](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/doehoonlee/32/16289_2.png) [@DOEHOONLEE](https://forum.babylonjs.com/u/DOEHOONLEE)\
**Post date:** [August 11, 2021, 8:33am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/1 "2021-08-11T08:33:07Z")

</div>

Hi guys~!!

I am having issues with opening/using Babylon with Chrome for some reason ☹

[1]. My current project is not loading

I have downloaded babylon module with npm, but I found out that unless I use dracoCompression, it will always try to pull from [preview.babylon.com](http://preview.babylon.com) [[post - https://forum.babylonjs.com/t/draco-decompression-broken/14789](https://forum.babylonjs.com/t/draco-decompression-broken/14789)]

 ![Screen Shot 2021-08-11 at 5.28.35 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/a/7ad0514ed4ef27bd367018517c2a0cce4e050b66.jpeg)

[2]. More surprisingly, I cannot even open Babylon PlayGround ☹

[link to the PG](https://playground.babylonjs.com/#UU7RQ#1)

![Screen Shot 2021-08-11 at 5.25.26 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/4/c493439054b26d5f604c6bbdb000e6a1841ed392.png)  
 ![Screen Shot 2021-08-11 at 5.31.13 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/0/50506af3d946db289347fa323d78c2ff77881c18.png)

Another surprise.

I can still open my project, PG, and everything using other browsers like Safari or even on mobiles, but just not on my computer…

Does anyone know what is going on?

Thanks! Have a happy coding day~!

---

<div class="post-metadata">

**Author:** ![Faber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/faber/32/15884_2.png) [@Faber](https://forum.babylonjs.com/u/Faber)\
**Post date:** [August 11, 2021, 9:15am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/3 "2021-08-11T09:15:37Z")

</div>

> [@DOEHOONLEE](#):
>
> link to the PG

The PG is now working. Is your problem solved ?

---

<div class="post-metadata">

**Author:** ![11128](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@11128](https://forum.babylonjs.com/u/11128)\
**Post date:** [August 11, 2021, 9:25am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/4 "2021-08-11T09:25:29Z")

</div>

![321321`](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/9/9/993c87391073a696ee8ac0175c7e8450548c0302.png)  
not yet…

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 11, 2021, 9:27am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/5 "2021-08-11T09:27:56Z")

</div>

Is there anyone else who has been having problems with the playground?

---

<div class="post-metadata">

**Author:** ![Faber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/faber/32/15884_2.png) [@Faber](https://forum.babylonjs.com/u/Faber)\
**Post date:** [August 11, 2021, 9:30am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/6 "2021-08-11T09:30:12Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/7/c79dbbc1a11b25669e55ee630bd7d31a9aa08fd5.jpeg)  
That’s the playground you expected, right @11128 ?

I never encountered this and I’ve been busy with playground every day lately. Maybe something about your firewall .or another kind of local restriction …?

---

<div class="post-metadata">

**Author:** ![11128](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@11128](https://forum.babylonjs.com/u/11128)\
**Post date:** [August 11, 2021, 9:35am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/7 "2021-08-11T09:35:24Z")

</div>

yes, until yesterday @Faber  
There was no problem with the PG, but starting today, there is a problem.

---

<div class="post-metadata">

**Author:** ![11128](https://avatars.discourse-cdn.com/v4/letter/1/d07c76/32.png) [@11128](https://forum.babylonjs.com/u/11128)\
**Post date:** [August 11, 2021, 9:51am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/8 "2021-08-11T09:51:44Z")

</div>

ohhhhhhhhhhhhhhhhhhhhhhhhh now it is possible i can PG and assets

 ![4141](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/d/edff355a6bf4983f9d4c713e7fa739ac9d11fa09.png)

---

<div class="post-metadata">

**Author:** ![DOEHOONLEE](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/doehoonlee/32/16289_2.png) [@DOEHOONLEE](https://forum.babylonjs.com/u/DOEHOONLEE)\
**Post date:** [August 11, 2021, 9:56am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/9 "2021-08-11T09:56:27Z")

</div>

@Faber

PlayGround and my project are all working now.

I want to prevent this from happening though. It seems like [THIS](https://doc.babylonjs.com/typedoc/classes/babylon.dracocompression#configuration) is the way to do so.

As far as I know, Draco is a way of compressing .gltf and to load a .gltf model, I need this draco thingy.

What happened to me was because my project was trying to pull draco file that is required to load .gltf, but because it is not internally located in my project, in an attempt to pull it from [preview.babylon.com](http://preview.babylon.com), there was an error.

Is this correct?

How can I put it in my project so that it won’t happen again??

Where should this go?

 ![Screen Shot 2021-08-11 at 7.06.06 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/f/6f4f97589fab6c3ab5ddf67e8ff4be564b8779e4.png)

 ![Screen Shot 2021-08-11 at 7.21.02 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/d/3d7152cf025c8a4509737a450b105ef12926e7ce.png)

I just included this in the code block where I am declaring and initiating the engine, scene, canvas, camera, etc. before loading .gltf

Would this be the right way?

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![DOEHOONLEE](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/doehoonlee/32/16289_2.png) [@DOEHOONLEE](https://forum.babylonjs.com/u/DOEHOONLEE)\
**Post date:** [August 11, 2021, 9:57am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/10 "2021-08-11T09:57:34Z")

</div>

Hi!

I’m sorry that you lost 2-week worth work. Really sorry to hear that. Hope you are now back on track.

Yes I am Korean. Are you currently working in some other country?

---

<div class="post-metadata">

**Author:** ![DOEHOONLEE](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/doehoonlee/32/16289_2.png) [@DOEHOONLEE](https://forum.babylonjs.com/u/DOEHOONLEE)\
**Post date:** [August 11, 2021, 10:03am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/12 "2021-08-11T10:03:36Z")

</div>

Did you somehow figure out how to prevent this error?

It seems like [THIS](https://doc.babylonjs.com/typedoc/classes/babylon.dracocompression#configuration) is the way to do so, but I am not sure how I can work it out ☹

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 11, 2021, 10:50am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/13 "2021-08-11T10:50:53Z")

</div>

DracoComperssion.Configuration is a static object that you can change:

[Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#FVUGVM)

(line 29)

If you import DracoCompression (in case you are using es6 imports) it will work the same

---

<div class="post-metadata">

**Author:** ![DOEHOONLEE](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/doehoonlee/32/16289_2.png) [@DOEHOONLEE](https://forum.babylonjs.com/u/DOEHOONLEE)\
**Post date:** [August 11, 2021, 10:52am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/14 "2021-08-11T10:52:12Z")

</div>

So I can just do this?

```auto
DracoCompression.Configuration.decoder.wasmUrl = `some location of wasm file in my project`

```

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 11, 2021, 10:52am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/15 "2021-08-11T10:52:38Z")

</div>

exactly, with your own URL(s)

---

<div class="post-metadata">

**Author:** ![DOEHOONLEE](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/doehoonlee/32/16289_2.png) [@DOEHOONLEE](https://forum.babylonjs.com/u/DOEHOONLEE)\
**Post date:** [August 11, 2021, 10:55am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/16 "2021-08-11T10:55:34Z")

</div>

hmm… seen anything like this before? ☹

 ![Screen Shot 2021-08-11 at 7.55.15 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/7/3724b48c0882ebb459274bf1e2ee7b0d86cb88ba.png)

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 11, 2021, 10:56am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/17 "2021-08-11T10:56:49Z")

</div>

i would guess the first line is the important one. You are loading the .js file as a text/html (might be a 404?) so it can’t execute it. it should be application/javascript

---

<div class="post-metadata">

**Author:** ![DOEHOONLEE](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/doehoonlee/32/16289_2.png) [@DOEHOONLEE](https://forum.babylonjs.com/u/DOEHOONLEE)\
**Post date:** [August 11, 2021, 11:07am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/18 "2021-08-11T11:07:23Z")

</div>

hmm

it’s already a js file though. Wouldn’t writing a relative path to the wasm file work? ☹

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 11, 2021, 11:16am UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/19 "2021-08-11T11:16:14Z")

</div>

the fact that it is .js is good, but your server is sending it incorrectly. and the browser can’t import this script for that reason. This is at least what the error message is saying

---

<div class="post-metadata">

**Author:** ![DOEHOONLEE](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/doehoonlee/32/16289_2.png) [@DOEHOONLEE](https://forum.babylonjs.com/u/DOEHOONLEE)\
**Post date:** [August 11, 2021, 12:04pm UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/20 "2021-08-11T12:04:13Z")

</div>

I tried blocking the [preview.babylon.com](http://preview.babylon.com) draco request so that I can test if  
`DracoCompression.Configuration.decoder.wasmUrl` is working, but it sill tries to pull from the website ☹

 ![Screen Shot 2021-08-11 at 9.03.05 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/d/8d2dacaeb091ad025304f8591c6a506208fa1c36.png)

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [August 11, 2021, 12:09pm UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/21 "2021-08-11T12:09:36Z")

</div>

it’s really hard helping without knowing anything about your project. If you want to reproduce this on the playground, we will be able to debug this with you.

---

<div class="post-metadata">

**Author:** ![DOEHOONLEE](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/doehoonlee/32/16289_2.png) [@DOEHOONLEE](https://forum.babylonjs.com/u/DOEHOONLEE)\
**Post date:** [August 11, 2021, 12:17pm UTC](https://forum.babylonjs.com/t/babylon-not-working/22982/22 "2021-08-11T12:17:32Z")

</div>

I am trying to reproduce the problem on PlayGround, but I don’t see the draco url request on the PG like my project does.

How come the PG can use .gltf without draco thingy??

PG

 ![Screen Shot 2021-08-11 at 9.16.02 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/f/3f3703340b666019715dd1706df7d10ab89a2f72.jpeg)

My project

 ![Screen Shot 2021-08-11 at 9.17.46 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/0/60e77a3435eed21e6156211c07b4eb7ca7928fd8.png)

Thank you so much for answering. I feel really close to solving the problem now. At least, now I know what is going on.

[Next page](https://forum.babylonjs.com/t/babylon-not-working/22982.md?page=2)
