-
Notifications
You must be signed in to change notification settings - Fork 927
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
ASP.NET Core 1.1 & ReactJS #353
Comments
Okay, so i managed to get things working. I imported React.Core and React.AspNet from the GitHub repo. In Initialiser.cs - the IsReactAssembly() method - for me the assembly names were coming in all lower case, so I changed the string comparisons inside the method. I haven't had time to search for why they're coming in lower case, anyone know? I'm messing around in VS 2017 RC at the moment, so my environment's a mess - but I'll make a pull request when I have time to sort things out. It's bedtime here! |
Hmm strange - I'm running http://dan.cx/socialfeed.htm on Mono 4.x + ASP.NET Core 1.1 + ReactJS.NET 3.0 and it's working fine. |
Hi, I think I might have more information on this problem. I have the same exact (I am pretty sure) project (Core 1.1) in VS2015 and in VS2017 RC. I believe the only difference is that in 2017 the project is using the new csproj file format. React.Net works for me in VS2015 but in VS2017 I get the "ReactNotInitialisedException: ReactJS.NET has not been initialised correctly. Please ensure you have called app.AddReact() and app.UseReact() in your Startup.cs file." message. |
@chanan - Hmm, I haven't tested on VS2017 RC yet. Did you add |
Yes both in VS2015 and VS2017 RC the startup and all the other files are the same. I cant give you a stack trace now since I screw up the csproj file somehow trying to figure out how to get ReactJS.Net to work (and eventually I moved back to VS2015 on a hunch). However, in other issues posted here someone else posted a tack trace that looks like mine (at least from memory). The issue seems to be with TinyIoC. |
Have the same issue here using VS2017 RC + ASP.NET Core 1.1 + ReactJS.NET 3.0, I can say that the method |
You need to call AddReact to configure ReactJS.NET otherwise it won't work
properly.
Sent from my phone.
On Jan 6, 2017 9:36 AM, "Etienne S.G" <[email protected]> wrote:
Have the same issue here using VS2017 RC + ASP.NET Core 1.1 + ReactJS.NET
3.0, I can say that the method app.AddReact() doesn't exists in the
Configure section.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#353 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFnHZwlrz_yOUzi8Yw2XNTJt9-Bnye3ks5rPX5-gaJpZM4K9Kl9>
.
|
My
And I have the
|
Have those still encountering problems tried using the development version of ReactJS.net including #354 ? |
If you want to try the development version, you can use the NuGet package server on our AppVeyor build (https://ci.appveyor.com/nuget/reactjs.net/). Instructions are available at https://reactjs.net/getting-started/download.html#development-builds I haven't had time to try VS2017 RC yet. @DaveKP Do you think that diff solves the issues with VS2017? |
@Daniel15 Yes, that diff fixed the issue for me which was using VS2017. I would expect it to work for others as well, but I never did figure out exactly why it was happening. |
I pushed out #354 as ReactJS.NET 3.0.1. Let me know if you still encounter issues. This fix seemed to fix the issue for me. |
Couldn't find a better place to ask - Should ReactJS be working with .net Core 1.1?
I'm getting :
When trying to use server-side rendering.
I can't see anything that I've mis-configured though, based on the tutorial code.
Startup.cs.txt
The text was updated successfully, but these errors were encountered: