mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
"A Javascript error occurred in the main process" when using React #95
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bradley-varol on GitHub (Dec 15, 2017).
Originally assigned to: @GregorBiswanger on GitHub.
I created a new .NET Core 2.0 Web Application and selected ReactJS during creation.
I added the NuGet package, startup, program, etc. I followed this tutorial.
Is this the correct way to use ReactJS with Electron.NET?
Screenshot of the error.
@GregorBiswanger commented on GitHub (Dec 18, 2017):
I created a new ASP.NET Core React Project with the default VS2017 template and that works.
Which node.js version do you use? In your screenshot is the message "use as administrator".. did you try it as a admin user too?
@bradley-varol commented on GitHub (Dec 19, 2017):
I did try as Admin and the error still occurred. I'll look into it again as soon as possible and report back. I'm using node 8.9.1.
@GregorBiswanger commented on GitHub (Dec 19, 2017):
The @yoDon implements a sample with Electron.NET and React..
You can try this one too: https://github.com/yoDon/Electron.NET-React-Typescript-MobX
@yoDon commented on GitHub (Dec 21, 2017):
I find that error often means the C# build process failed with an error. There's a ton of log spew that can make the C# errors hard to spot, but it's worth looking for them in case that's the issue.
@yoDon commented on GitHub (Dec 21, 2017):
Also there are undiagnosed reports of this issue on Linux builds (having nothing to do with React, they seem to be impacting all Linux builds) https://github.com/ElectronNET/Electron.NET/issues/75
@bradley-varol commented on GitHub (Jan 13, 2018):
Thank you. I'll take a look ASAP! :)