My friend, after hours fighting to get this working tonight, and getting about ready to just build this app in something else, you saved the day with a clear example of HOW and WHY to setup each part. THANK YOU!
@@ritikjain4947 I was struggling with this also, but I've just managed to get it working by having pathname back to './index.html.' and mainWindow.loadUrl() back to use 'localhost:3000'. Not sure if it's the best way, though, as I now have the lines I'm not using for the build step commented out and manually uncomment them and comment these ones for localhost whenever I need the build command to work again.
My friend, after hours fighting to get this working tonight, and getting about ready to just build this app in something else, you saved the day with a clear example of HOW and WHY to setup each part. THANK YOU!
Glad I could help
Excellent video, thank you
Glad you liked it!
Good video,
but
I think the whole point of contextBrige and IPC is to keep nodeIntegration : False
Is that so? Then how will the integration work?
Will you be able to guide to a resource for the same?
yes you are right , i will explain how to do this
i followd exactly ur instructions but it is not working for me i get following error message "Uncaught (in promise) TypeError: electron is undefined"
Check if your imports are correct. How can electron be undefined.
I am getting the same error, how did you solve it please
same with me. inside devTools when typing window.electron its undefined
without running build and npm run start how it is updating
In dev mode it runs through a server. And on prod it's a build
@@amitavroydev how to that can you tellme
@@ritikjain4947 I was struggling with this also, but I've just managed to get it working by having pathname back to './index.html.' and mainWindow.loadUrl() back to use 'localhost:3000'. Not sure if it's the best way, though, as I now have the lines I'm not using for the build step commented out and manually uncomment them and comment these ones for localhost whenever I need the build command to work again.
Thank
Welcome and do subscribe if you haven’t already 🙂