electron-re | Electron process manager | Runtime Evironment library
kandi X-RAY | electron-re Summary
kandi X-RAY | electron-re Summary
Electron process manager and more...
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-re
electron-re Key Features
electron-re Examples and Code Snippets
Community Discussions
Trending Discussions on electron-re
QUESTION
I am trying to use pkcs11js in an electron app created with electron-forge using webpack template.
But I got the error
...ANSWER
Answered 2021-Jun-14 at 10:30You should use the Electron Forge Webpack template which has better support for native modules.
There is currently an open issue for this functionality caused by the outdated/unmaintained @marshallofsound/webpack-asset-relocator-loader
which caters for native modules via Webpack. I'm currently working on a PR to fix this but in the meantime you can use my updated fork.
QUESTION
I am new to electron js
and I am trying to use devtron
. When I use require
in the Electron Browser Window. I face this error
Uncaught ReferenceError: require is not defined
Please note that I am getting this error when using require in BrowserWindow, not in the code. I have also tried setting nodeIntegration: true,
and contextIsolation: true
in webPreferences
. I have attached the screenshot.
Here is my code of main.js
...ANSWER
Answered 2021-May-28 at 08:06contextIsolation
is enabled, disable contextIsolation
and nodeIntegration
should work.
QUESTION
I created an app (done for OSX) that will send a message even when the main window is hidden, currently my main.js is like this:
...ANSWER
Answered 2021-May-12 at 21:06Sure....this will reopen your minimized window
QUESTION
I Know that there is a lot of topic about this, but since none of them work, I must make a new one, I'm quite confused as why my electron app doesn't launch when I used yarn dev
for my project, but when my friends try it, in his laptop, he can run and the apps launch normally without any problem, so Is there anyone here ever face the same problem with me? if there is someone, how can you solve this problem?
this is what my terminal looks like:
for information I used:
...ANSWER
Answered 2021-Apr-28 at 12:55This may be a silly answer. Try checking whether the task is running or any other programs interfereing the app, like an antivirus.
QUESTION
In a Electron-React-Typescript app I'm getting this error: Property 'api' does not exist on type 'Window & typeof globalThis'. window.api.send('open-type-A-window', '');
But in a file index.d.ts I declared interface Window in this way:
...ANSWER
Answered 2021-Apr-24 at 19:24I'm not familiar with React.js but I had the same issue with an Electron-Angular application. By adding the following declaration to my app.module.ts file it allows TypeScript to recognize the api
object in window.
You should be able to do the same by adding to your main module in your TS project.
QUESTION
So the Redux tab is added to Chome devtools, but when I click on the tab it displays the message No store found. Make sure to follow the instructions.
. I also console.logged my state
object to check if my store is empty but it's not. I'm on Electron version 12.0.4 and my operating system is Arch Linux.
Here's the block of code from my main.js
file:
ANSWER
Answered 2021-Apr-22 at 05:10Give this a try. The trick I believe is that you need to install and then open (if you want) the dev tools after your DOM is ready or else you'll get errors littered in your console window.
electron v12.0.5
electron-devtools-installer v3.2.0
QUESTION
I'm trying to create an application that runs from the tray.
Unfortunately, I keep getting the following error:
Uncaught TypeError: Cannot read property 'join' of undefined
How do I fix this?
My main.js is as follows:
...ANSWER
Answered 2021-Mar-25 at 18:09const path = require('path');
QUESTION
I'm building a project based off the Electron React Boilerplate project. I am running MacOS 10.15.7 and node v14.15.1.
I'm trying to install sqlite3
package. Since it's a native dependency, I ran yarn add sqlite3
inside the src/
directory, like it says to do here. The compilation fails with the following output:
ANSWER
Answered 2021-Mar-10 at 22:12I downgraded the sqlite3 package to v5.0.0 and it rebuilt correctly. Hope this helps anyone else with the same issue.
Source: nodejs electronjs sqlite3 - use of undeclared identifier 'napi_is_detached_arraybuffer'
QUESTION
I am getting this error whilst using the latest version of Electron. I have nodeIntegration set to true in my main javascript file. I have copy and pasted this code from a working Electron application but it doesn't seem to work with my new app.
Electron Version: ^12.0.0
My main JS
...ANSWER
Answered 2021-Mar-10 at 09:49I have had the same issue. It comes with the update from electron 11.x to 12.x See here: https://www.electronjs.org/releases/stable#release-notes-for-v1200
You have to disable contextisolation, which changed from beeing true by default in the new electron version.
QUESTION
I'm loading icons on my app.js
...ANSWER
Answered 2021-Feb-28 at 15:45As mentioned in webpack docs
Out of the box, webpack only understands JavaScript and JSON files.
So you need to use loader for png file as webpack don't know what to do with that file.
More on Loaders
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install electron-re
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