Uncaught ReferenceError: exports is not defined in filed generated by Typescript

I solved it with a hack in the embedding HTML:

<script> var exports = {}; </script>
<script src="https://stackoverflow.com/questions/42497479/index.js"></script>

Basically giving it what it wants, a global exports variable.

With that my TypeScript (2.3.2) generated file (es6) loads.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)