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

前端 未结 7 2195
暗喜
暗喜 2021-02-01 02:41

I\'m trying to get started with Typescript for Electron development. After wrestling with getting typing for node and jquery, I finally got my .ts file error free.

The p

7条回答
  •  不要未来只要你来
    2021-02-01 02:59

    I solved it with a hack in the embedding HTML:

    
    
    

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

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

提交回复
热议问题