I'm happy to help, if you could share what kind of error in our code you suspect is causing this problem. 
All I noticed, is the difference in how the generated code references the imported modules: 
The problem identifies the modules by using a (local) variable `types` and the variable seems to be undefined: 
[TRIPLE QUOTE]. 
But in locations that do not cause an exception functions from the same `types.ts` module are referenced by using `Source_ODS_types__WEBPACK_IMPORTED_MODULE_1__`: 
[TRIPLE QUOTE].