I did the following project
https://playground.babylonjs.com/#14KRGG#441
which works without problems in playground but when downloading it and running it locally it just doesn’t work, I don’t know if I should configure the html that it downloads to download add-ons.
when viewing the browser console it throws me 3 errors:
(index): 340 Uncaught (in promise) TypeError: Cannot read property ‘insertBefore’ of null
- at setupRenderer ((index): 340)
// add css3DContainer behind WebGl scene
webGLContainer.insertBefore (css3DContainer, webGLContainer.firstChild) - at createScene ((index): 299)
// Setup the CSS css3DRenderer and Youtube object
let css3DRenderer = setupRenderer (videoViewMesh, UrlYoutube, scene); - at initFunction ((index): 610)
scene = createScene ();};
I do not know why locally I get these errors, if in playground I do not get any. I hope you can help me, because I am very confused and anguished that I cannot make my project work.