Https://cdn.babylonjs.com/gui/babylon.gui.min.js got updated and broke my app

Where I can find previous versions of https://cdn.babylonjs.com/gui/babylon.gui.min.js?
I just want to find the version I was using before.

The error is the following: I did absolutely nothing to the app, it was working some days ago.
Thank you.

Uncaught TypeError: (0 , s.RegisterClass) is not a function
at control.ts:2519
at index.ts:4
at index.ts:4
at universalModuleDefinition:9
at universalModuleDefinition:1

Is it possible that you are using a different version of the engine? Can you share your app URL?

This usually happens when there is a mismatch between the engine version and the module. If you load the engine from the same cdn it should work just fine, but would be great to see a live example of it not working.

My app URL: Matching Game Cr. by Diego Orellana
maybe because I fixed some import versions? and not others? I fixed the version because I was avoiding a bug from the newest versions at that time (out of focus bug, but that is another topic). Thank you for your replies.
These are my imports:

        <script src="https://unpkg.com/babylonjs@5.0.0-alpha.0/babylon.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/babylonjs-loaders@4.1.0/babylonjs.loaders.min.js"></script> 
        <script src="https://cdn.babylonjs.com/gui/babylon.gui.min.js"></script>

        <script src="https://code.jquery.com/pep/0.4.3/pep.js"></script>
        <script src="https://cdn.babylonjs.com/ammo.js "></script>
        <script src="https://cdn.babylonjs.com/recast.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>

I am not sure why you are loading 3 babylon dependencies from 3 different CDNs, but that issue is the mismatch between the babylon version and the other dependencies.

Load them all from cdn.babylonjs.com and it will work.

2 Likes

CDN is down RaananW

https://cdn.babylonjs.com/

I think you just need to specify which file you want and then it works. :slight_smile:
https://cdn.babylonjs.com/babylon.js

1 Like

You scared me sooooo much :slight_smile: