Electron with React - Building a desktop applications with React and Electron

Electron with React - Building a desktop applications with React and Electron

Justin Brooks

3 года назад

176,303 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Fitenson Waynchiff
Fitenson Waynchiff - 09.10.2023 16:34

Is this setup works on actual production?

Ответить
Վարդան Թառայան
Վարդան Թառայան - 01.10.2023 08:20

Thank you

Ответить
Coleski123
Coleski123 - 26.08.2023 03:26

yarn add electron concurrently wait-on cross-env Does not work for me after the initial install why

Ответить
Sam Adrian P. Sabalo
Sam Adrian P. Sabalo - 25.08.2023 17:38

I'm having issues with mine. No matter what I do, react would always open on a new browser window.

Ответить
Jorge Maronezzi
Jorge Maronezzi - 07.06.2023 04:14

Awesome tutorial, tyvm, I hope you didn't stop creating excellent videos like this.

Ответить
Jehnsen Enrique
Jehnsen Enrique - 18.05.2023 16:28

Electron is slow

Ответить
iHouqLF
iHouqLF - 04.05.2023 23:27

yarn is just stuck on wait-on tcp:3000 for me

Ответить
CreaturesOrigins
CreaturesOrigins - 20.04.2023 04:53

Outdated.

Ответить
Hakej
Hakej - 19.04.2023 18:07

Guys, if the electron app is not showing for you then it's probably because of "wait-on tcp:3000". For some reason wait-on is not finished once something on tcp:3000 happens, in our case our react app is built and shown.

You can remove "wait-on tcp:3000 && " part from electron:start and you will start showing the window, but it's gonna be blank for the time of react build. I don't know how to circumvent that.

Ответить
Vankurua
Vankurua - 18.03.2023 05:48

I think you shoud "cd react-electron" before"yarn add concurrently wait-on cross-env"

Ответить
Fish Plus
Fish Plus - 09.03.2023 17:30

fireship lookin ah video 💀💀💀💀💀

Ответить
GreennWolf
GreennWolf - 22.01.2023 23:30

Sorry, I have a question, how can I do the build if the react application has a react router?

Ответить
Lucas Nascimento
Lucas Nascimento - 10.01.2023 23:58

I was having problem to use -c.extraMetadata

I found a way to solve, in the package.json, add to the build properties the following:

"extraMetadata":{
"main":"build/index.js"
}


Another important thing: You dont need to put node_modules folder on files, as it is not needed to build.

Ответить
Valentín Tango
Valentín Tango - 21.12.2022 21:47

Any git with the final code? Video links to the React-Electron starting point.

Ответить
aja davis
aja davis - 02.12.2022 19:13

think this video was time dependent, and no longer works.

other general feedback:
skips parts of development process on video (results may vary)
uses @electron/remote with huge warning sign on it when viewing the npm page without discussion
best practice to not enable nodeIntegration without mentioning alternative
nice add format size function

Ответить
Anthony Fink
Anthony Fink - 29.10.2022 21:19

Hello Justin window.require("path") not an function. how possible to fix that ?

Ответить
Kvendev
Kvendev - 28.10.2022 11:47

well, doesnt open the window, maybe already outdated

Ответить
Nathan Santos
Nathan Santos - 30.09.2022 04:22

after all following code, yarn runs perfect but the electron window dont open at all

Ответить
Ramazan Aktaş
Ramazan Aktaş - 21.09.2022 20:00

People seem confused. This is not a tutorial.

Ответить
heytheremogwai
heytheremogwai - 19.09.2022 21:34

uh..so what happens with the index.html that is created via CRA?

Ответить