Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to run my Electron TypeScript application?

See original GitHub issue

Hi 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:

  1. Converted my TS files to JS files;
  2. Use the bytenode --compile command to convert all these JS files to JSC files;
  3. 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:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

colinrwcommented, Sep 7, 2022

@OsamaAbbas I’ve sent you an email 🙂

OsamaAbbascommented, Sep 7, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found