electron-quick-start-typescript | Clone to try a simple Electron app | Frontend Framework library
kandi X-RAY | electron-quick-start-typescript Summary
kandi X-RAY | electron-quick-start-typescript Summary
This is a TypeScript port of the Electron Quick Start repo -- a minimal Electron application based on the Quick Start Guide within the Electron documentation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of electron-quick-start-typescript
electron-quick-start-typescript Key Features
electron-quick-start-typescript Examples and Code Snippets
Community Discussions
Trending Discussions on electron-quick-start-typescript
QUESTION
I'm migrating a existing electron project to a typescript-electron project, to get familiar with it. However, when I try to run the electron app I get this error: Uncaught ReferenceError: exports is not defined at renderer.js:2
I didn't understand it once my tsconfig.json is that:
...ANSWER
Answered 2020-Jun-12 at 05:55This looks like a known issue on typescript: https://github.com/microsoft/TypeScript/issues/30718
From what I understand, it may happen when you have a target commonjs
and a typescript file that imports but doesn't export (normal for the renderer file).
Some did the same like you, removing that line and event automated that with a watcher.
I also see that there is a pull request that introduces a new config flag so that you could suppress that line, but that's pending since September lase year.
The comments mention another 'hack' and I'd do that on the script: just add a variable 'exports' yourself. It has to be var
, const
or let
won't work:
QUESTION
Forgive the simplicity of my plaintiff question, I'm close to my wits end.
I am looking for a working simple example of Electron v8 and TypeScript. It needn't include WebPack, Babel, React or anything else. Nothing I have found seems to work with Electron v8.
UpdateMy prior statement remind me of Macbeth's line it is a tale Told by an idiot, full of sound and fury, Signifying nothing, so let's state the problem in detail this time.
The stock Electron & Typescript example does not demonstrate the following:
- Using
import
for Node modules within the renderer process - Using
import
for my own application modules within the renderer process.
Attempting to do so got no errors from tsc
but provoked a runtime error
ANSWER
Answered 2020-Feb-22 at 18:16I couldn't find any simple electron typescript starter example either... so I created my own.
Here's my repository. It's based on the official quick start starter (but with typescript).
I also added electron-builder for easily building disturbable packages.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install electron-quick-start-typescript
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page