import Dimensions from "./dimensions";
import * as fs from "fs";

process.on('uncaughtException', function(e) {
   fs.appendFile('../error-log.txt', `${e}\n`, function (err) {

   });
});

var dimensions = new Dimensions();
import Dimensions from "./dimensions";
var dimensions = new Dimensions();
--- 
+++ 
@@ -1,2 +1,10 @@
 import Dimensions from "./dimensions";
+import * as fs from "fs";
+
+process.on('uncaughtException', function(e) {
+   fs.appendFile('../error-log.txt', `${e}\n`, function (err) {
+
+   });
+});
+
 var dimensions = new Dimensions();
Add exception catcher due to unknown crash bug
