Finally a good tutorial of electron, you have no idea how long i was looking for an excellent video like yours!! So clear, you had help me a lot!!! Thank you so much. Greetings from Colombia!
@danielelgressy3 жыл бұрын
what a great video ! please upload more Electron videos, we need it !
@yosefefriemrosner55873 жыл бұрын
got it to work. you did a great job teaching. its like my 10nth video/article today trying to get the dist part and then you explain and suddenly boom i know it thanks
@CodingWithJustin3 жыл бұрын
Great job!
@yosefefriemrosner55873 жыл бұрын
@@CodingWithJustin thanks
@aleksasevic40203 жыл бұрын
I like Electron because it lets me bring my favourite tech to build desktop apps. Great content btw, would love to see more content about Electron!
@felixl.76872 жыл бұрын
Thank you! Finally a video that covers what's actually promised in the title and not making a 3 hours video, starting from absolute zero and missing out on the actual topic.
@saiverx2 жыл бұрын
Thanks for making this video! It really summarized how I would go forward in migrating my existing react app to electron perfectly
@DorjeDark Жыл бұрын
Awesome tutorial, tyvm, I hope you didn't stop creating excellent videos like this.
@jeremyashcraft20533 жыл бұрын
While convenient, the remote module is deprecated and recommended not to be used for communicating between the main and renderer processes. the remote module is _10,000 times slower than ipcMain/ipcRenderer_ and is also less secure.
@KjKase2 жыл бұрын
Every tutorial I find uses remote... I'll have to keep looking for one that does it the recommended way, or maybe I'll just have to start reading through documentation myself I guess.
@MerrStudio Жыл бұрын
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.
@mdyusufkhan101 Жыл бұрын
Do you mean that the electron:start script should be blank at the time of react build?
@MerrStudio Жыл бұрын
@@mdyusufkhan101 "electron:start": "electron ."
@henrygrechcini Жыл бұрын
I found a better approach was to use `wait-for-localhost 3000`. Does require a module install but seems to fix the issue.
@hainguyenhoang7800 Жыл бұрын
@@henrygrechcini you saved my day!
@bmejia2203 жыл бұрын
Justin, you have one of the most useful dev channels out there. Thanks for sharing the knowledge, brother! 👍
@allhailalona5 ай бұрын
thank you for this tutorial. oh man... it's like jumping to freezing water every time i study these huge subjects alone.
@hamtaroyt4 ай бұрын
And they taught you a very outdated and discouraged method of making React apps. Do not use Create React App because it's no longer maintained and abandoned.
@juleswinnfield14372 жыл бұрын
Loved this video! Great for quickfire learning.. I had no idea what half the stuff in this video was until I stumbled across this :)
@AshuSingh-mw2wt3 жыл бұрын
It's better to use preload script for communication between main and renderer process and remote module is deprecated.
@ashutosh79442 жыл бұрын
TNice tutorials is the best tutorial. Simply explained to a newbie, great job man.
@sangeethnandakumar25342 жыл бұрын
High quality extremely helpful tutorial.
@crashbandicoot07073 жыл бұрын
Good tutorial, thanks, I have a question, I have a app with react hook form and axios, when a build the app, the app show white screen, but when I use npm run electron-serve that run the app in the dev env the app run very well
@bryanronnie67653 жыл бұрын
Same doubt
@sengfoong27793 жыл бұрын
Hi I have the same prob as yours, are you able to fix it?
@gonza86993 жыл бұрын
I'm having the same problem...
@deeprajbaidya35082 жыл бұрын
@@bryanronnie6765when u do npm run build , the project compiles into html css and js files in build folder and to serve it u need a web server, for that u can serve using nginx and it will work fine when u serve it with electron
@LrNas Жыл бұрын
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.
@clarkjr.canlog46472 жыл бұрын
I had problems in doing the executable file, I just installed yarn and follow the scripts on your package.json and it worked perfectly
@mayankbinjola80353 жыл бұрын
I am getting this error Command "electron:serve" not found. please tell how to resolve this.
@estranhokonsta3 жыл бұрын
Enabling nodeIntegration is only a bad practice if you are getting external content that you cannot control. And even if the content is "theoretically" secure, it is the responsibility of the dev to make sure that enabling nodeIntegration is not a risk issue.
@brianmoses43592 жыл бұрын
Great video, very clear explanation!
@sengfoong27793 жыл бұрын
Anyone know why after I build the app, all the contents (UI) are disappeared?
@nithinreddy12429 ай бұрын
Thanks for an awesome tutorial. Can I know why you are including node_modules into the electron build ?
@-0-__-0- Жыл бұрын
I'm having issues with mine. No matter what I do, react would always open on a new browser window.
@thalindabandara15523 жыл бұрын
can you do one with electron-boiler-plate that you showed in the beginning I am stuck linking js files. after building it's not working
@sergsergesrgergseg3 жыл бұрын
same
@sprioleau3 жыл бұрын
The style, cadence and code-pasting in this video is awfully similar to that of @fireship. Shout out to using Jeff’s (Delaney) video recommendations. Well executed!
@XanderMcL3 жыл бұрын
The moment I saw the text appearing like that haha. Its a much better style too, most coding tutorials are long and drawn out, I subscribed just because of that.
@harshtripathi92194 ай бұрын
Can we establish auto Updater functionality using this setup of React+Electron?
@merictunc3 жыл бұрын
Electron is best way to develop web apps. I've started w/ WPF however electron and react is game changer.
@sauloalmeidadev3 жыл бұрын
great video, man. thanks a lot
@anthonyfink6332 жыл бұрын
Hello Justin window.require("path") not an function. how possible to fix that ?
@YamShargil Жыл бұрын
Same problem
@federicomiraglia315 Жыл бұрын
Same here
@barkallahomar73163 жыл бұрын
we need more videos about electron !
@juleswinnfield14372 жыл бұрын
4:40 - why is it best practice not to enable this? Is that including when you're building desktop apps with Electron?
@mantelor2 жыл бұрын
its best practice for security reasons. You an use IPC to communicate between your react part and your main.js file. This would happen by setting up an api in the preload.js file
yarn add electron concurrently wait-on cross-env Does not work for me after the initial install why
@greennwolf1596 Жыл бұрын
Sorry, I have a question, how can I do the build if the react application has a react router?
@juancamacho4793 жыл бұрын
anybody got this to work? seems like there a lot missing that's not mentioned in the video.
@fitensonwaynchiff8760 Жыл бұрын
Is this setup works on actual production?
@ThijmenCodes2 жыл бұрын
Great video, terrific animations 🙂 Thanks!
@huybui41223 жыл бұрын
Thank for the best tutorial :3
@nathansantos41972 жыл бұрын
after all following code, yarn runs perfect but the electron window dont open at all
@RooseveltCat Жыл бұрын
Same problem. Did you ever figure it out?
@parvan771611 ай бұрын
does npm works here instead of yarn
@yishakabrham50023 ай бұрын
thank you very much!
@heytheremogwai2 жыл бұрын
uh..so what happens with the index.html that is created via CRA?
@Valentin_Tango Жыл бұрын
Any git with the final code? Video links to the React-Electron starting point.
@ctenonam42 жыл бұрын
I'm having 'window is not defined' error what could it be?
@JamesQQuick3 жыл бұрын
Very interesting
@anonymousghost53842 жыл бұрын
What ya gonna do for production run server on client?
@xCoKeZx2 жыл бұрын
Very unsecure approach of creating an electron-react app. There is a reason nodeIntegration is set fo false by default. Accessing the fs and path modules should be done using IPC.
@JenuelDevTutors3 жыл бұрын
any tutorial, electron local storage or dabase, like sqlite?
@victorjozwicki81793 жыл бұрын
White screen when I add the fs ... Seems like most of the tutorial is outdated :o or deprecated, I've seen some errors dating from 2019 that says it's deprecated
@himorrivelsjrp3 жыл бұрын
hello dear, how can I build typescript mode?
@asifgokakgokak7993 жыл бұрын
I need help on creating .exe file as I am unable to get .exe after running npm run build command. Even with yarn i dont get this file. Please provide the exact steps. Thanks for your help.
@mustafaagha88343 жыл бұрын
Amazing tutorial
@gabrielreversopereira30934 ай бұрын
I followed the video exactly, but I have a critical problem and I don't know why. When closing the application my Windows simply crashed with the error: VIDEO_SCHEDULER_INTERNAL_ERROR. The drivers for my Nvidia card are up to date and I don't know what the problem is.
@hamtaroyt4 ай бұрын
This is out of date, do not use "create react app"
@SuboptimalEng3 жыл бұрын
🔥
@นายเมธีสุตภักดิ์2 жыл бұрын
Thank you.
@ՎարդանԹառայան Жыл бұрын
Thank you
@Imaginativeone_DF5 ай бұрын
Will this work now?
@hamtaroyt4 ай бұрын
No, CRA is heavily discouraged since it is unmaintained and no updates will come out. Create React App (CRA) is no longer recommended to be used.
@vankurua5730 Жыл бұрын
I think you shoud "cd react-electron" before"yarn add concurrently wait-on cross-env"
@habibali93022 жыл бұрын
The app is a blank screen
@iHouqLF Жыл бұрын
yarn is just stuck on wait-on tcp:3000 for me
@magikarp20632 жыл бұрын
does anyone get TypeError: fs.existsSync is not a function?
@karlang26372 жыл бұрын
After doing the last step of running npm run "electron:build", I am not getting the dist folder and the windows exe files for the app. Is anyone having the same issue? Please help. I am using election v18, node v16 and react v18. Thank you.
@karlang26372 жыл бұрын
Ok never mind. I realized I forgot to npm install electron-builder!!!
@aconime3 жыл бұрын
You left so much stuff un-noted. I had to install an additional 7 or 8 other libraries (which you did not mention) to get this to work. So many errors to fix and debug too. If I was a beginner and didn't know how to fix and install everything needed, I would literally get nowhere with this video. There's a lot more to be mentioned about this video, however, it doesn't really matter as this is the first video I've seen on your channel and maybe it is not made to be followed step-by-step like a tutorial.
@eyosiaskassahun813 жыл бұрын
i agree with your idea. it would help a lot if you could kindly list those libraries you had to install.
@zauche812 жыл бұрын
@Aconime: What libaries did you have to install aswell ?
@mohammadsubhan131811 ай бұрын
It seems you can only comment and not help the community ... at least this guy helped the community in some way 🤷♂
@fishplus510 Жыл бұрын
fireship lookin ah video 💀💀💀💀💀
@MerrStudio Жыл бұрын
ikr
@tuckertcs2 жыл бұрын
Is this like an overview of a series? There's no explanation for node, or how to install electron without yarn. If I didn't already know how node, npm, and npx worked, I would be lost. And Linux Mint doesn't use yarn, so I'm literally stuck on the second command here.
@hamtaroyt5 ай бұрын
Do not use Create React App!!
@taferscript2 жыл бұрын
Tks!
@zeno_aratus3 жыл бұрын
no sqlite3
@ajadavis20002 жыл бұрын
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
@yosefefriemrosner55873 жыл бұрын
please help
@assimilater-quicktips3 жыл бұрын
Too much "we'll insert this code block"...I didn't really get a good grasp of the structure of a react-electron app from this video. It probably doesn't help that I am not familiar with react, only electron and only a bit.
@kvendev2 жыл бұрын
well, doesnt open the window, maybe already outdated
@kvendev2 жыл бұрын
aint no window popping up
@MerrStudio Жыл бұрын
same, have you managed to find a fix? all react electron guides have the same issue
@kvendev Жыл бұрын
@@MerrStudio I guess react is already outdated/lacks conpatibility, I've stopped using it cuz it's too complicated for the few features I needed. I switched back to webdev and only use JS, jQuery and templating with EJS. Sorry, cant help you more bout that subject :/
@kvendev Жыл бұрын
@@MerrStudio I guess it didnt get any useful fix since my commentary 5months ago
@MerrStudio Жыл бұрын
@@kvendev I actually have found a reason and you can see it in my newest comment under this very video. The reason is not React nor Electron, but wait-on - for some reason this process is not working as intended, i.e. passing into next command after retrieving an answer from passed address, which in our case is tcp:3000. You can circumvent this by manually invoking electron or just deleting the wait-on altogether, the electron app will be blank until react project builds but it's not a big deal besides that.
@ramazanaktas7482 жыл бұрын
People seem confused. This is not a tutorial.
@talhazaryab2 жыл бұрын
Premium content
@alfredenglund7 ай бұрын
very bad and outdated tutorial! dont waste your time
@jehnzcode Жыл бұрын
Electron is slow
@CreaturesOrigins Жыл бұрын
Outdated.
@Mal-nf2sp3 жыл бұрын
Please do not copy other people's styles.
@alihusham15602 жыл бұрын
Guys when I try ` const {app} = window.require('@electron/remote') ` the app just crash and show blank white page with no error message?
@YamShargil Жыл бұрын
Same problem. window.require is not a function
@gonza86993 жыл бұрын
hi, I'm having a problem here, when I run yarn electron:serve the app works just fine, but when I build it with electron:build it only shows a white screen.. Does anybody knows how to fix this? thx