Questions tagged [electron-react-boilerplate]
63 questions
11
votes
1 answer
How to add extra resources files in production in electron using electron-forge
I have a file that i need compulsory to make my application work,i am able to use the file in development by specifying fixed path var path = process.cwd() + '/src/app/components/task/Scripts'; and the file name after that,but after packaging the…

Martin
- 111
- 1
- 4
6
votes
1 answer
How to properly set up material-ui with electron-react-boilerplate
I'm having issues with material-ui (v4.9.5) library running with electron-react-boilerplate.
To reproduce:
follow the installation tutorial
yarn add @material-ui/core
add some widgets from the library:
diff --git a/app/components/Home.tsx…

Vasniktel
- 307
- 1
- 4
- 12
3
votes
1 answer
ChunkLoadError: Loading chunk # failed. electron-react-boilerplate
After running yarn package and opening my application, I get this error when my app tries to display a component that uses React.Lazy.
// this Is how I declare my component
const LazyAcaoPage = React.lazy(() => import(
/* webpackChunkName:…

Hozeis
- 1,542
- 15
- 36
2
votes
1 answer
How to integrate local fonts into an Electron React Boilerplate App?
What does not work
I am trying to add some custom local fonts into my Electron React App, but i would like to do it without installing the fonts on my computer.
Current partial solution
The only way, which works for me, it is to install the fonts on…

Davide Taurisano
- 46
- 3
2
votes
0 answers
unable to navigate between Browser windows Electron-react (in Prod mode)
how can we navigate between two windows in electron -React in production mode.
In development Mode, since I m using React I m Navigating through HashRouter.
Here is my Routes.tsx

Virinchi Manepalli
- 275
- 3
- 6
2
votes
2 answers
Module parse failed: Unexpected character '�' (1:2) src/node_modules/playwright/bin/PrintDeps.exe
I trying to run a playwright script on my electron-react app but I am getting this error when it gets to the playwright code.
Module parse failed: Unexpected character '�' (1:2)
src/node_modules/playwright/bin/PrintDeps.exe
You may need an…

Royer Adames
- 868
- 9
- 13
2
votes
0 answers
Electron React Boilerplate not navigating to new Routes
I decided to give electron-react-boilerplate (https://electron-react-boilerplate.js.org/) a try for a project where I MUST use Electron.
The framework seems promising until it doesn't work, The Routing seems to be broken, yet it doesn't render any…

Pepito Fernandez
- 2,352
- 6
- 32
- 47
2
votes
0 answers
How to ignore eslint rules in electron-react-boilerplate project?
There seem to be two linting rules in the electron-react-boilerplate project that are in conflict with each other.
onChange={(e: React.ChangeEvent) =>
setSvg(e.target.value)
}
// react/jsx-curly-newline-problem
Fixing that…

user1283776
- 19,640
- 49
- 136
- 276
1
vote
0 answers
Tone js giving errors while trying to play a file on pc in main process of electron-react app
I want to play audio files (mp3/wav) in my electron app, Right now I am using react as ui and sending ipcEvents back and forth between main process and renderer to try to play the audio file. I am using Tone js for doing so, below is the code where…

Silenx
- 37
- 6
1
vote
0 answers
strugelling with building a bundle app using electron-react-vite with loadFiles not webserver
I am trying to learn something new here. I am working on client app which uses Electron + react.
I used this github repo to start my project https://github.com/electron-vite/electron-vite-react
And since i am not ready yet to learn typescript, I…

CoderButBeginner
- 95
- 7
1
vote
0 answers
How to use downloadable assets in electron react boilerplate
I developed app based on electron-react-boilerplate and now I want to lower package size by moving my video/audio assets to CDN to be downloaded on first run. Assets are downloaded to assets/ directory and this directory is added to extraResources. …

Asgu
- 712
- 5
- 15
1
vote
1 answer
How to load a URL into a BrowserView in an Electron React Boilerplate app that uses MemoryRouter?
I am building an Electron app using Electron React Boilerplate. ERB uses MemoryRouter from react-router-dom.
The problem I'm facing is that I want to load a URL into a BrowserView inside a BrowserWindow. However, I think you cannot access a…

quachhengtony
- 125
- 4
- 17
1
vote
2 answers
How i can add to my appname and version wirh electron-react-boilerplate
My app after npm run package looks like Electron React-4.4.0.AppImage
How can I change it to write a new version after every build?
I checked https://electron-react-boilerplate.js.org/docs/packaging
But it didn't work for me unfortunately.

Senseless
- 11
- 2
1
vote
1 answer
How to use better-sqlite3 with electron-react-boilerplate
Consider this example created by using the following steps:
git clone --depth=1 https://github.com/electron-react-boilerplate/electron-react-boilerplate.git better-sqlite3-test
cd better-sqlite3-test
yarn
cd ./release/app
yarn add better-sqlite3
cd…

Firdous Ahmad
- 49
- 1
- 8
1
vote
1 answer
How to merge changes from electron-react-boilerplate to my repository?
I have a private repository in GitHub. I cloned electron-react-boilerplate and then, I changed the origin to my repository. I have made some significant changes (Changed the renderer and some eslint and TS config as it was too strict for me) and…

samcodee
- 103
- 13