I can't find ASP.NET Core with React.js
Hello guys, I want to create ASP.NET Core with React.js because I want to follow Tutorial but in visual studio on my computer I can't find it. Should I install additional module? May somebody help me with that?(the first screenshot is from tutorial)
35 Replies
that's the only one I see
I wonder if there is missing templates
I have it too but are they the same? Why haven't I template from the tutorial is it because of visual studio version?
what version of visual studio are u using?
I suspect they were replace but im not sure
It's Visual Studio Community 2022 v17.10.0
]
yeah I guess they replaced it
and the new template sets everything up
ok thank you but I have another issue when I am trying to compile this application this errors occure everytime
and if u do it from the console?
how can i do that?
u go to the folder where the csproj is
and do dotnet build
it's the same issue
open the vs installer
and go to modify
and check nodejs
i have it downloaded
then on the previous window do a repair
on visual studio
ok this may take a few minutes
aside from that everything works for me
I repaired this but it stil doesn't work
it would have helped if the errors were in English and not as a image, I dont do web front end so this is as far as I can help u sorry.
Maybe someone else can assist u
ok thank you
What version of nodejs are you using?
what version of .net do you have installed?
.NET 8 doesn't have templates that include SPAs
just set up the SPA separately
.net 8.0
how can i do it?
follow the instructions for setting one up with vite/etc
vite can proxy requests to your API project in development and for production you can serve the frontend files directly from the API
do you need vite? As long as you set up the SPA stuff properly in your
Startup
it should be able to run finewhat SPA stuff are you referring to?
i haven't done this much myself but vite does stuff like HMR for hot reloading when you change the frontend source
and what if you aren't using react :when:
well this guy was trying to use react lol
only reason I mentioned it
i'm guessing that's specifically for CRA which to my understanding is hot garbage
vite is a similar tool