15,279 questions
355
votes
21
answers
170k
views
Electron: jQuery is not defined
Problem: while developing using Electron, when you try to use any JS plugin that requires jQuery, the plugin doesn't find jQuery, even if you load in the correct path using script tags.
For example,
...
263
votes
21
answers
277k
views
Remove menubar from Electron app
How do I remove this menu-bar from my electron apps:
Also it says "Hello World"(is this because I downloaded electron pre-built, and will go away once I package the application?). I didn't code these ...
263
votes
2
answers
377k
views
How to unpack an .asar file?
I have packed my Electron application using the following command:
asar pack app app.asar
Now, I need to unpack it and get the whole code back. Is there any way to do so?
252
votes
11
answers
256k
views
Electron require() is not defined
I'm creating an Electron app for my own purpose. My problem is when I'm using node functions inside my HTML page it throws an error of:
'require()' is not defined.
Is there any way to use Node ...
227
votes
18
answers
248k
views
How to set app icon for Electron / Atom Shell App
How do you set the app icon for your Electron app?
I am trying BrowserWindow({icon:'path/to/image.png'}); but it does not work.
Do I need to pack the app to see the effect?
209
votes
1
answer
82k
views
What is the Visual Studio Code editor built on
What underlying technologies/libraries is Microsoft's new (free) cross platform editor Visual Studio Code (Launched 5/29/2015) built on? There are rumors that it's just Github's Atom Editor rebranded....
179
votes
26
answers
423k
views
How to enable file upload on React's Material UI simple input?
I am creating a simple form to upload file using electron-react-boilerplate with redux form & material ui.
The problem is that I do not know how to create input file field because material ui ...
171
votes
18
answers
190k
views
Using console.log() in Electron app
How can I log data or messages to the console in my Electron app?
This really basic hello world opens the dev tools by default, by I am unable to use console.log('hi'). Is there an alternative for ...
154
votes
5
answers
30k
views
What are the functional differences between NW.js, Brackets-Shell and Electron?
Now that TideSDK is effectively dead, I've been looking into alternative 'wrappers' to run HTML/CSS/JS applications as stand-alone desktop applications. The three viable options I have run across so ...
149
votes
5
answers
67k
views
electron-builder vs electron-packager [closed]
What is main difference between electron-builder and electron-packager. Is there some example projects for both? Which is better for standalone .exe application build?
145
votes
7
answers
214k
views
Typescript + React/Redux: Property "XXX" does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes
I'm working on a project with Typescript, React and Redux (all running in Electron), and I've run into a problem when I'm including one class based component in another and trying to pass parameters ...
113
votes
10
answers
136k
views
How to use sqlite3 module with electron?
I want to develop desktop app using electron that uses sqlite3 package installed via npm with the command
npm install --save sqlite3
but it gives the following error in electron browser console
...
108
votes
25
answers
488k
views
How do I reload a page with react-router?
I can see in this file (https://github.com/ReactTraining/react-router/blob/v0.13.3/modules/createRouter.js) that there is a refresh function but I have no idea how to call it. I'm fairly new to react-...
107
votes
6
answers
116k
views
How to use preload.js properly in Electron
I'm trying to use Node modules (in this example, fs) in my renderer processes, like this:
// main_window.js
const fs = require('fs')
function action() {
console.log(fs)
}
Note: The action ...
103
votes
7
answers
111k
views
Electron Take Up 100% Of Screen (Not Full Screen)
I've got an electron app, below is the main.js file:
var app = require('electron').app;
var BrowserWindow = require('electron').BrowserWindow;
app.on('ready', function() {
mainWindow = new ...