-
Notifications
You must be signed in to change notification settings - Fork 927
React.NET is broken in Visual Studio 2017 RC and .NET Core 1.1 #372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A while ago I wrote a diff that fixed React.NET in VS2017 for me, #354. I believe it's still only available in the development version, and no-one has confirmed (or refuted!) for me yet that the fix is working for anyone other than myself. Quoting @Daniel15
If you have the option to try the dev build @orobert91, it's worth a shot, not least because I'd like to know if it actually works! |
Yeah, please try the dev version. Visual Studio 2017 is not RTM yet so I still haven't fully tested it. I might set up a VM and test it out. |
Excellent! I will try it and give you feedback |
I have tested the latest development build. Instead of React.TinyIoC.TinyIoCResolutionException I get the following exception: |
I solved the issue by installing the JavaScriptEngineSwitcher.ChakraCore and JavaScriptEngineSwitcher.ChakraCore.Native.<your_OS> NuGet packages and manually specifying the JS engine. Added: Now I got a fully working ReactJS.NET under Visual Studio 2017 RC. |
VroomJs is only really for Mono (Linux and Mac OS X), it's better to use ClearScript V8 on Windows. |
V8 is not compatible with .NET Core. |
Using the dev branch of ReactJS.NET with ChakraCore is the only way I've managed to get server-side rendering working in ASP .NET Core as well. |
I installed VS2017 RC today to test this out, but I can't even get a basic project working out-of-the-box. I created a new .NET Core 1.0 site, and when I run it using IIS Express I just get the "Chrome script debugging in Visual Studio is enabled" page followed by a blank page 😕 |
Also I can't open the ReactJS.NET project with VS2017 RC as I get these errors when it tries to convert the
|
.NET Core 1.0 is fairly new technology. Try updating your .NET Core packages to 1.1 using NuGet and update the SDK using https://www.microsoft.com/net/download/core#/current -> Current |
I pushed out #354 as ReactJS.NET 3.0.1, which seems to fix this. After messing with VS2017 so it worked properly, I managed to create a new .NET Core 1.1 site and a local build of ReactJS.NET worked out-of-the-box after following the installation instructions at https://reactjs.net/getting-started/aspnetcore.html. Looks like it uses ChakraCore on .NET Core, which is fine. Let me know if you still encounter issues! |
As seen here:
https://reactjs.net/getting-started/aspnetcore.html
and here:
#361
React.NET is broken in Visual Studio 2017 and .NET Core 1.1. Navigating to a JSX file fails with a "React.TinyIoC.TinyIoCResolutionException: Unable to resolve type: React.IReactEnvironment" error message.
The issue has been reported by different users, yet we have not heard anything from the React.NET developpers for a while about it. Needless to say that this is a very serious problem and it should be top priority to fix because there is currently no acceptable workaround. May any developper officially acknowledge the issue? Is there an ETA for the fix?
Thank you very much
The text was updated successfully, but these errors were encountered: