Questions tagged [electron-react-boilerplate]

63 questions
0
votes
0 answers

Electron contents.undo() when the button is clicked?

I'm using electron-react-boilerplate, how to undo when button is clicked with contents.undo() ?
0
votes
0 answers

Error running Electron child_process.execFile with Python executable wrapped with PyInstaller and rembg library

I am encountering an issue when trying to run an Electron application that utilizes child_process.execFile to execute a Python script. The Python script is wrapped into an executable file using PyInstaller. Within the Python script, I have imported…
0
votes
0 answers

Why does my Electron application open without loaded styles and images?

I have a problem with webpack in a React + ts + electron based application. Specifically, the application works in the 'dev' environment - the browser version opens and loads all styles and images. However, after executing the command "npm run…
0
votes
0 answers

How to create a .deb and/or an .exe file with electron-react-boilerplate

I created an app with the following command: $ git clone https://github.com/electron-react-boilerplate/electron-react-boilerplate.git myapp installed the node modules $ npm install and then I built the executables $ npm run package Now I find the…
user3601578
  • 1,310
  • 1
  • 18
  • 29
0
votes
0 answers

how to trigger "react bootstrap modal" (containing intro.gif) and close modal after intro.gif finishes?

i want to trigger Modal (containing intro.gif) in Electron React Boiletplate on application start, and the modal should close after "intro.gif" finishes. below is what I've tried so far. Home.tsx import { useState } from 'react'; import { Button,…
0
votes
1 answer

Electron ipcRenderer listener not triggered in React component

I have a button that should trigger all windows to perform an action, play media. I have a MediaProvider class in the main process that handles all communication for the media IPC channels (truncated for brevity). This class is initialized in…
Tristan
  • 1,608
  • 1
  • 20
  • 34
0
votes
0 answers

Refused to load the script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'"

I'm trying to build a desktop app using Electron.js & React.js and integrate TinyMCE text editor in it. It's my first time using both Electron and tinyMCE, and I've used electron-react-boilerplate to start my project, so I'm fairly lost on the…
Tsabary
  • 3,119
  • 2
  • 24
  • 66
0
votes
0 answers

How do I pull in a supporting json data file in an electron-react-boilerplate app

I created an app using electron-react-boilerplate. I am pulling in a JSON file to serve as a source of data. When I run the build command - npm run package I get it successfully packaged. But the JSON file is not pulled in. How can I pull in…
Phil
  • 2,143
  • 19
  • 44
0
votes
0 answers

Can't attach event handler on VoiceConnection in Discord.js

In short: I have been trying to make some UI in electron (electron-react-boilerplate) for my discord bot. The bot should connect to voice channel and on command, play some mp3 files into the mic. I've made it work in development, but not in…
0
votes
0 answers

Electron build error: file not found in artifact

this is my first time building an electron app and I am getting confused about this error I got in my production package. I've created my app using the electron-react-boilerplate, and I am running the package build with the default config. …
0
votes
1 answer

how set arrow function type in electron preloader on('event')

I am using electron-react-boilerplate. I am preloading events I want to use, like so: const { contextBridge, ipcRenderer, app } = require('electron'); contextBridge.exposeInMainWorld('electron', { ipcRenderer: { on(channel, func) { …
0
votes
1 answer

Why is firebase undefined when used with electron?

I have the following: Fresh install of electron-react-boilerplate firebase ^9.8.4 in package.json In renderer I have the following code: import firebase from 'firebase/app'; const config = { /* ACTUAL CONFIG FROM FIREBASE CONSOLE */ /* snip…
Glenn
  • 1,996
  • 2
  • 24
  • 32
0
votes
1 answer

Best practice to use Sqlite with Electron

I have an Electron app scaffolded using ERB (electron-react-boilerplate) which needs to read and write data from/to a Sqlite database. I am using BetterSqlite3 for the database and React for the renderer. From what I can tell looking at the…
0
votes
1 answer

Electron ipcRenderer.sendSync() returning undefined

I'm writing an app with the electron-react-boilerplate framework. I've been following a tutorial here: https://riptutorial.com/electron/example/19713/synchronous-ipc-communication In my renderer process I have: let a =…
0
votes
1 answer

How to debug the Electron main process?

I'm working on electron-react-boilerplate and I'm stuck on how to debug its main process (such as the src/main/main.ts file. To reproduce my situation, simply follow the below steps, as documented in the above link: git clone --depth 1 --branch main…