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

前端 未结 7 2113
暗喜
暗喜 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 03:05

    QuickFix

    Change "target": "es6" to "target": "es5" in your tsconfig.json.

    0 讨论(0)
提交回复
热议问题