Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

Uncaught TypeError: Cannot read property 'push' of undefined

$
0
0

I don't know if this is the proper place to report bugs, but I couldnt find the Issues link of this project github page.

I am trying to use babylon as a browserify module with the budo webserver: https://github.com/mattdesl/budo

Here is my index.js:

	var BABYLON = require('babylonjs/babylon.max');
var html = require('bel');
var canvas = html`<canvas id="renderCanvas"></canvas>`;
document.body.appendChild(canvas);
	window.addEventListener('DOMContentLoaded', function() {
    console.log('DOMContentLoaded');
    console.log(canvas);
    var engine =  new BABYLON.Scene(canvas, true);
});
	

Then, when I open localhost:9966 I get the error of the title:

"Uncaught TypeError: Cannot read property 'push' of undefined"

The line that throws this error is the line 16958 of babylon.max.js which might be coming from https://github.com/BabylonJS/Babylon.js/blob/49bde9f67194ecc773c07a4ee0064fe836914b59/src/babylon.scene.ts#L575

Any ideas of what I could be doing wrong?

Thanks!


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>