I've narrowed it down to here (see below)
for some reason the "targetWindow" value is not available
HttpPostMessage.prototype.send = function (request, targetWindow) { if (targetWindow === void 0) { targetWindow = this.defaultTargetWindow; } request.headers = this.assign({}, this.defaultHeaders, request.headers); if (!targetWindow) { throw new Error("target window is not provided. You must either provide the target window explicitly as argument to request, or specify default target window when constructing instance of this class."); } return this.windowPostMessageProxy.postMessage(targetWindow, request); };