Closed j-Cis closed 7 years ago
@chuckjaz can you please have a glance at this to see if it's something relative to how our typescript code is setup?
@CisSasGot
angular2-platform-node
you should use platform-server
. More info https://github.com/angular/angular/issues/13822
answer to mr. @matsko
I think it lies on the angular side, ...
I created 2 kit's named ng2 and ng4, The difference between them is that one works under 2.4.10 and the other under 4.0.0-rc.5, all the components of the components in both are the same. And this ng4 reports an error but not the VS2017 compiler structure, and in the browser already during the operation.
https://github.com/CisSasGot/vs2017-angular4-kit-starter
answer to ms. @DzmitryShylovich I'm getting ready to change. thank you. I will check and let you know if it helped.
P.s. Maybe you have some other method to combine the benefit of angular-cli with VS2017 otherwise. How to create a working starer angular4 in VS2017
@CisSasGot as @DzmitryShylovich points out, you should be using platform-server
with Angular 4.0 as angular2-platform-node
is not compatible with 4.0 and has been replaced by platform-server
.
/cc: @vikerman
@CisSasGot, I had the same issue while upgrading Angular 2 app to Angular 4. I resolved it by changing following in my code.
@ns8482e, I did exactly as you stated, however I am still getting the errors above with webpack.
Used @CisSasGot's solution as a starting point.
any fix for the SPA template yet?
Asp.net core team working on to fix the template for dotnet core and vs 2017 at https://github.com/aspnet/JavaScriptServices/issues/800 As workaround use working branch @MarkPieszak created
Any fix to this? I have an existing Angular2 SPA templated NET Core app I am trying to upgrade to Angular 4.1.3 and I've tried all of the above, yet I still get this error.
Any update?
The issue reported was that the application was not update to platform-server
. Updating it to platform-server
resolved the issue.
If you are having an issue with platform-server
please file a new issue that includes a link to a repository that reproduces the issue you are having.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
I'm submitting a ... (check one with "x")
Current behavior
Minimal reproduction of the problem with instructions 0) cloning from https://github.com/CisSasGot/vs2017-angular4-kit-starter/ or 1) IDE: VS2017 Comunity / node 7.7.3 2) in terminal
3) upgrade from
4) Open VS2017 and when finish proces compiled i get this error in web browser chome and edge
What is the motivation / use case for changing the behavior? I want to create Angular4 starter for VS2017. (As a basis for further projects)