Questions tagged [electron-react-boilerplate]
31 questions
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…
![](../../users/profiles/8728510.webp)
Vasniktel
- 303
- 1
- 4
- 11
2
votes
0 answers
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…
![](../../users/profiles/15381842.webp)
Martin
- 21
- 2
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…
![](../../users/profiles/912875.webp)
Pepito Fernandez
- 2,116
- 5
- 27
- 43
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…
![](../../users/profiles/13695335.webp)
John_123
- 67
- 7
1
vote
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…
![](../../users/profiles/1283776.webp)
user1283776
- 12,822
- 32
- 103
- 190
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;…
![](../../users/profiles/10030210.webp)
crrmacarse
- 676
- 3
- 18
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…
![](../../users/profiles/9990279.webp)
Filip
- 451
- 4
- 15
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…
![](../../users/profiles/5571752.webp)
atul
- 411
- 3
- 10
0
votes
0 answers
Electron react app doesn't remove updater file after uninstall the app ...C:\Users\myfile\AppData\Local\myfile-updater
The electron application does not remove the updater file from the AppData C:\Users\myfile\AppData\Local\myfile-updater . I used the electron react boilerplate to create this windows application.…
![](../../users/profiles/14813089.webp)
Ritheesh Thomas
- 11
- 2
0
votes
0 answers
Why does 'app' not exist in class called from the main process?
I am using the electron-react-boilerplate. I have this in main.dev.ts
ipcMain.handle('getSettings', (e) => {
return FileController.getSettings();
});
And my FileController class
import { Settings } from "../models";
// import { toast } from…
![](../../users/profiles/3822043.webp)
Tristan
- 922
- 11
- 24
0
votes
0 answers
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:…
![](../../users/profiles/4825796.webp)
Jose Rodrigues
- 853
- 11
- 29
0
votes
0 answers
React (Electron-React-Biolerplate) different handling MacOS and Linux (Raspbian OS)
I develop a React-Electron-Boilerplate (with Redux) app on my MacBook. Since it needs to run on my RaspberryPi later on, I test it there from time to time. Up to now, everything was identical...
I retrieve coordination via WebSocket and update their…
![](../../users/profiles/7977410.webp)
M.S.
- 49
- 8
0
votes
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…
![](../../users/profiles/1751611.webp)
lockijazz
- 45
- 2
- 7
0
votes
1 answer
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…
![](../../users/profiles/3044126.webp)
Royer Adames
- 55
- 5
0
votes
0 answers
Electron Js Uncaught TypeError: Object(...) is not a function
hey i'm working on a desktop app with electronJs and ReactJS and everything works perfectly in developement mode ! but after i run npm run package and launch the production app i get an error
Uncaught TypeError: Object(...) is not a function
at…
![](../../users/profiles/15235891.webp)
Fares Harmali
- 11
- 2