Jump to content

ES6 Module issues


PhilT
 Share

Recommended Posts

Hit another one so thought I'd just make a single thread!

Uncaught TypeError: Cannot read property 'World' of undefined
    at new OimoJSPlugin (es6.js:79131)
    at HTMLDocument.document.addEventListener (main.js:15)

 

Let me know if you need any more info.

Link to comment
Share on other sites

I'm using master and whatever is in the 'preview release' folder. Should I be building locally?

 

Live reload enabled.
es6.js:10915 Babylon.js engine (v3.2.0-beta.1) launched
main.js:14 ƒ OimoJSPlugin(iterations) {
            this.name = "OimoJSPlugin";
            this._tmpImpostorsArray = [];
            this._tmpPositionVector = BABYLON.Vector3.Zero();
            this.BJSOIMO = t…
main.js:15 Uncaught ReferenceError: OIMO is not defined
    at HTMLDocument.document.addEventListener (main.js:15)

Link to comment
Share on other sites

Ah, of course I wasn't actually importing oimo like I was cannon!

However, if I do:

import './node_modules/babylonjs/dist/preview release/oimo.js'

I get:

oimo.js:4 Uncaught TypeError: Cannot read property 'OIMO' of undefined
    at oimo.js:4
    at oimo.js:5

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...