How to run my Electron TypeScript application?
See original GitHub issueHi everyone, I am trying to implement bytenode, but I am a bit stuck with making my application run with .jsc
files. These are the steps that I took:
- Converted my TS files to JS files;
- Use the
bytenode --compile
command to convert all these JS files to JSC files; - Removed all the JS files;
Right now I’ve got all my files converted to JSC files, but I have no idea how to run my application with these JSC files.
I’ve read that I had to add require('./main.jsc');
to my files, but they all seem to give errors when I try to run the code the original code.
Does anyone have an idea/walkthrough to run an Electron app with JSC converted files? Thank you 🙂 Operating system: macOS
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
TypeScript and Electron The Right Way | by Dave Bush
You'll need to compile the TypeScript into JavaScript so that Electron will be able to run your files. But before we do this,...
Read more >electron-quick-start-typescript - GitHub
Clone and run for a quick way to see Electron in action. This is a TypeScript port of the Electron Quick Start repo...
Read more >Build an Electron app with Typescript and React - Codiga
First, you'll need to clone the repo and install its dependencies. You can use the following commands to get an app started. Make...
Read more >Electron - Quick start with Typescript - DEV Community
Actual Coding of your Electron app. Let's start with our implementation. First of all we create a index.html , which we're loading in...
Read more >Using Electron in TypeScript, the way we like it - Yoctopuce
In TypeScript, each source file represents a module, with imports and exports. All the modules must thus be compiled into JavaScript and then ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@OsamaAbbas I’ve sent you an email 🙂
You have to
require('bytenode')
before running your.jsc
files.And, you have to use electron executable itself in compiling your code. You can not compile them using node amd run them using electron.