Threejs and Ionic4

I am trying to implement threejs in Ionic app and somehow it only renders the object for a split second, and then gives up and returns to a blank white screen. Could I get some help on this please?