Assuming the error is in the following line :
var awayContainer = document.getElementById('away3DContainer');
var awayCanvas = new examples.MinimalScene(awayContainer);
awayContainer.appendChild(awayCanvas); // Error here
It is because the type MinimalScene is not compatible with Node
which is the expected for appendChild
Quick fix : use any
:
var awayContainer = document.getElementById('away3DContainer');
var awayCanvas:any = new examples.MinimalScene(awayContainer); // Quick fix
awayContainer.appendChild(awayCanvas); // no Error
It will fix the compile error, but I suspect that your appendChild is wrong.