Questions tagged [electron-react-boilerplate]
63 questions
1
vote
1 answer
electron-react-boilerplate: window.electron does not exist Error
I'm using electron-react-boilerplate v4.0.0
I've exposed this electron api from preload.js to use in renderer process.
preload.js
The problem comes when trying use "window.electron.ipcRenderer.printTicket()" inside a react component.
Hello React…

Daniel Sanchez
- 11
- 2
1
vote
1 answer
After opening my application once, it updates automatically and opens its own app
I have developed an application using react and electron. And everything works great. When I package it, the application opens. However, when the app is open, the notification comes. It is automatically updated to version 3.0.2. Then, when I run my…

Tolga Günaydın
- 31
- 4
1
vote
1 answer
@react-pdf/renderer only displays pdf on first render
Im currently using react-pdf/renderer and the Electron-React-Boilerplate. If I restart my app, the pdf is generated and visible. If I close the page and reopen it, the location where the pdf is is blank.
const PdfOrcamentoItem = ({ item }:…

Hozeis
- 1,542
- 15
- 36
1
vote
1 answer
Can't compile sqlite3 as a native addon, Electron React Boilerplate project
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…

lockijazz
- 75
- 2
- 9
1
vote
0 answers
Electron react boilerplate problem with APIs
I am using a static map API on Electron-react boilerplate project. The map shown in development mode only, but when I am packing the project as an app (.exe/.msi) the map api will not shows. I have tried to change the API but I get the same…

John_123
- 67
- 8
1
vote
0 answers
Electron post-scss webpack parser error on build
This is a boilerplate from electron-react. I've tried to include scss mixins but it seems to spit out with the following error:
CssSyntaxError: C:\C:\app\scss\base\_theme.scss:30:17: Unknown word
You tried to parse SCSS with the standard CSS parser;…

crrmacarse
- 1,176
- 1
- 8
- 22
1
vote
1 answer
Electron-react-boilerplate starts the main process, but nothing happens
I've just cloned this repo: https://github.com/electron-react-boilerplate/electron-react-boilerplate
installed it and tried running it as described in the README file.
But when I run yarn dev, the only thing that happens is this:
The electron app…

Filip
- 855
- 2
- 18
- 38
1
vote
0 answers
electron read remote file on boot up and share info to all component/containers
I am new to electron and react. I want to read a remote json file on application boot up, store in a global variable and share the same information throughout the application (component / containers). Also I want to add few common methods to process…

atul
- 540
- 4
- 11
0
votes
0 answers
Type '({ note, onBlockClick }: NoteProps) => void' is not assignable to type 'FC'. Type 'void' is not assignable to type 'ReactNode'.ts
i am building a component to render a data object to my main page in react typescript. while implementing a functionality change, i received error in my code editor.
Type '({ note, onBlockClick }: NoteProps) => void' is not assignable to type…
0
votes
0 answers
How to open new route with MemoryRouter in Electron?
I'm using Electron-React-Boilerplate to developing my app and I'm new to both Electron and React.
The boilerplate uses ReactRouter package to handle the route of the app, and I want to create a new window which shows content in specified route when…

お休みなさい
- 31
- 5
0
votes
0 answers
Unable to create working executable of electron-react app
I am trying to create a music player application using electron Electron react boilerplate.
In the development mode everything works fine, the routing was a bit messed up but by using useLocation to get initial filepath I was able to fix that. But…

Silenx
- 37
- 6
0
votes
0 answers
How can I play audio files in electron's main process whilst controlling pause/play/seek using the react ui
I am working on an electron app ( built on top of electron react ts template that electron provides ) Now I want to be able to play audio files using the app. I want control over seek, play, pause for the audio file. How can I achieve this? I've…

Silenx
- 37
- 6
0
votes
0 answers
Error: Refused to create a worker due to Content Security Policy violation - 'worker-src' fallback used. Electron React App
I want to play and control audio file in electron-react app. Currently I am using Tone Js to do so. In my FilePlayer.ts I create the player by getting the bufferData of the file from the main process.
useEffect(() => {
// Create and load the…

Silenx
- 37
- 6
0
votes
0 answers
All elements in Electron app are scaled down in dev environment but appear normal in production build
I've been having this issue across all of my Electron apps where my development environment seems to scale down all elements in my application by some factor. Things appear completely normal when I create a production build of the application.
Side…

rjoor
- 3
- 5
0
votes
0 answers
How use electron-tabs lib with electron-react-boilerplate?
I installed the electron-tabs lib on electron-react-boilarplate and this error occurs:
App.tsx
import { FC } from 'react';
import { TabGroup } from 'electron-tabs';
const App: FC = () => {
const tabGroup = new TabGroup();
const tab =…

Miiih
- 1
- 6