-
Notifications
You must be signed in to change notification settings - Fork 516
Can't compile React Redux Template #1099
Comments
I can confirm this issue when creating a project with yo (using the most recent stable release of generator-aspnetcore-spa on npm). EDIT: At the moment the changes necessary (thanks David) in
|
Thanks man, solved it ! |
I don't know but maybe it is better to keep this issue open until it is resolved completely so that other user having that problem find the workaround and maybe someone pushes a new version... |
@stephtr Done buddy ! |
Hi, today after a fresh github clone of my project I had these two issues: It seems that errors were produced due to outdated typescript definitions packages so I solved it like this: npm install --save types/[email protected] And now its building without problems... Hope it helps some one ! |
Glad you got it solved! Note that the next versions of the templates include Marking this as closed because it's fully solved in the latest code in the repo. |
Got latest version - these are not present in the latest release. https://raw.githubusercontent.com/aspnet/JavaScriptServices/721e3c45fd8e7e4657e4c6d5d0ed03a435f71b9e/templates/ReactReduxSpa/package.json is the package.json that people need to get in the interim. Can confirm it works (so thank you for resolving) |
@SteveSandersonMS a Dumb question man, how do I update the templates ? |
@DavidNorena The most recent build is at https://www.nuget.org/packages/Microsoft.DotNet.Web.Spa.ProjectTemplates, but note this is only compatible with the latest .NET Core 2.0 Preview 3 SDK and requires you to add https://dotnet.myget.org/F/aspnetcore-ci-release/api/v3/index.json to your list of NuGet feeds. If you want a simpler update experience, wait until .NET Core 2.0 ships, and the latest SPA templates will be included in it. |
I updated the package.json, and still. After a restart and after I tried creating a new project, I still get this problem |
Have you also updated TypeScript and restored packages? I just tried to create a new project using |
Hi, after updating package.json file as @stephtr said, my solution works( it runs in browser normally) but it still gives me 400+ errors in index.d.ts file. Somebody had similar problem? |
You probably are using an older version of the template? |
I'm not sure what version is it, I just followed instructions from this site https://blogs.msdn.microsoft.com/webdev/2017/02/14/building-single-page-applications-on-asp-net-core-with-javascriptservices/ and installed reactredux with dotnet new. And my errors are:
|
Could you try deleting the node_modules folder after updating package.json? (And after that restore packages.) |
I tried that and it did not help. :S |
Update: I created new template but then I fixed 1st issue by adding After that I tried to update |
That change shouldn't be necessary. |
I'm using VS Pro 2017 Version 15.2 (26430.14) Release and targeting 1.1. I tried to target 2.0 but can't find solution, is it even possible or do I need to get 15.3 version of VS? |
not fixedIssues still out of the box.
this is what came with the new project. I get build errors, and npm warnings.
|
I'm still getting this, with the most recent version of Visual Studio and the most recent React template. |
Hi, today i wanted to start a new project using net core 2 preview 2 and the react redux template but I can't compile the project can you please guys help me ?
The text was updated successfully, but these errors were encountered: