I am building a desktop application in which i want to open external application from my app. I'm using electron's child_process
for performing this operation. But I'm stuck in how to import child_process
on TypeScript file.
I tried to use require('child_process').exec
and System.import('child_process').exec
but it is throwing error "Can't find module 'child_process'.
But when i use it on index.html
in <script>
it works properly!
I got this solution here. But it is working with SystemJS. But my project is not configured with SystemJS.
Any help would be appreciated. Thanks in advance!