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

前端 未结 7 2190
暗喜
暗喜 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:56

    I was also facing the same issue and tried by chagning with different versions of typescript but did not work.

    Finally I got it - There was a "type": "module" and when I removed it - it worked

提交回复
热议问题