Jump to content

Error require 3.2.0-alphaA


SinhNQ
 Share

Recommended Posts

I received error when trying require babylon.js v3.2-alphaA. That normal in bjs previous (v3.2-alpha7).
Log:

Uncaught Error: Module name "babylonjs" has not been loaded yet for context: _. Use require([])
http://requirejs.org/docs/errors.html#notloaded
    at makeError (require.js:168)
    at Object.localRequire [as require] (require.js:1433)
    at requirejs (require.js:1794)

 

Link to comment
Share on other sites

Hi @RaananW,

I has found cause error. I'm using require.js lib to require modules.

In line 22-23 in babylon.max.js.

else if(typeof define === 'function' && define.amd)
     define("babylonjs", factory);

I guess the syntax define function used for nodejs. Unfortunately, in require.js also have define function but different syntax.
I has changed to

else if(typeof define === 'function' && define.amd)
     define([], factory);


and it work great.

Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...