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…
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…
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…
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…
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…
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;…
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
  • 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…
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.…
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…
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:…
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…
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…
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…
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…
1
2