Electron.NET icon indicating copy to clipboard operation
Electron.NET copied to clipboard

Electronize start command throws unhandled exception

Open GevorDanielyan opened this issue 3 years ago • 5 comments

Hello everyone. I'm created Blazor Server App in .NET 6, and when I want to start simple Electron application I'm getting the following error:

image

What would be a reason? Can you help me? Thanks in advance

GevorDanielyan avatar Apr 28 '22 12:04 GevorDanielyan

Getting the exact same thing. Init threw an error too, but at least it created the manifest file. VS2022 Community, W11, tried both .Net 5 and .Net 6 and got the same error.

mbielski avatar Jun 07 '22 17:06 mbielski

Getting the exact same thing. Init threw an error too, but at least it created the manifest file. VS2022 Community, W11, tried both .Net 5 and .Net 6 and got the same error.

@mbielski , in .NET 6 don't have support, Electronize NET works up to .NET 5. For my side, this issue solved, it can be network issue, please check your firewall, maybe it blocks.

GevorDanielyan avatar Jun 08 '22 07:06 GevorDanielyan

@GevorDanielyan I dug in this morning to see what might be blocked and noticed a few key things in the output, chief among them that apparently it could not find npm. It appears that my VS install did not add Node even though I had it selected. Small problem, easily fixed. Installing Node has at least gotten me a new error, so that's progress, right?

mbielski avatar Jun 08 '22 13:06 mbielski

@mbielski using Electron, you are supposed to have installed NodeJs before using Electron NET.

GevorDanielyan avatar Jun 08 '22 13:06 GevorDanielyan

@GevorDanielyan yes, I know that. You generally expect something to be installed when you check the box for it. I still have a problem with electronize init but am pursuing that in the appropriate issue. Thanks.

mbielski avatar Jun 08 '22 13:06 mbielski

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

GregorBiswanger avatar Mar 28 '23 10:03 GregorBiswanger