Typescript ReferenceError: exports is not defined

Few other Solutions for this issue

  • Add the following line before other references to Javascript. This is a nice little hack.
   <script>var exports = {};</script>

Leave a Comment