Electron now supports typescript. But by running the example published in:
I always get the following error:
Should I have done something else?
Electron now supports typescript. But by running the example published in:
I always get the following error:
Should I have done something else?
Install ts-node and typescript package to your project and then add parameter -r ts-node/register when running electron
npm install ts-node
npm install typescript
electron -r ts-node/register .
and add require('ts-node/register') in your html file
<script>
require('ts-node/register')
</script>
package.jsonfile