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

前端 未结 7 2116
暗喜
暗喜 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:53

    I was having the same issue, I just modified the systemjs.config.js file as mentioned below

    'npm:': '/node_modules/' -- // Its value was just 'node_modules/' and I added '/' in the beginning

    'app': '/src/app' -- // Its value was just 'app' and as my app folder path was different so is changed it accordingly

    loader: '/src/systemjs-angular-loader.js' -- // Its value was just 'systemjs-angular-loader.js' and as its location was different in my project so pointed it to the correct path

提交回复
热议问题