Jump to content

Getting errors in bjs npm 3.2-alphaA


HoloLite
 Share

Recommended Posts

I just synced to npm package alphaA. It built ok but I am getting the following run-time errors (from console log).

babylon.inspector.bundle.js:1 Uncaught TypeError: Cannot read property 'Vector2' of undefined
    at i (babylon.inspector.bundle.js:1)
    at Object.eval (babylon.inspector.bundle.js:1)
    at t (babylon.inspector.bundle.js:1)
    at Object.eval (babylon.inspector.bundle.js:1)
    at t (babylon.inspector.bundle.js:1)
    at eval (babylon.inspector.bundle.js:1)
    at eval (babylon.inspector.bundle.js:1)
    at n (babylon.inspector.bundle.js:1)
    at eval (babylon.inspector.bundle.js:1)
    at Object.../../../../babylonjs-inspector/babylon.inspector.bundle.js (vendor.bundle.js:29)

 

Link to comment
Share on other sites

I understood that I did not need to explicitly import the inspector - I should've had those import lines removed.

After removing the imports, the issue was gone in alphaA as I mentioned previously, and the thing is the inspector is working as far as I can tell. I can see the inspector windows on the right. So my question is what is broken here ?

Link to comment
Share on other sites

Nothing is broken, it all works as expected.

The problem was the way the inspector was declared and the dependencies it took when initialized.  

If you want to use a specific version of the inspector, you can force a specific version. if not, BABYLON will download the latest version and add it to the current context. In this case, it won't use module.exports, exports or defines (in case of amd), but will use the regular vanilla JS way, which works as expected.

Next NPM package is coming up later on today, and it will have a fix for that issue.

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