Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

ngAspnetCoreEngine Issue with Angular 5 Latest RC #824

Closed
naveedahmed1 opened this issue Oct 10, 2017 · 5 comments
Closed

ngAspnetCoreEngine Issue with Angular 5 Latest RC #824

naveedahmed1 opened this issue Oct 10, 2017 · 5 comments

Comments

@naveedahmed1
Copy link

Note: for support questions, please use one of these channels: https://github.com/angular/universal/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports. Also, Preboot has moved to https://github.com/angular/preboot - please make preboot-related issues there.

  • I'm submitting a ...
- [ x] bug report
  • What modules are related to this Issue?
- [x ] aspnetcore-engine
  • Do you want to request a feature or report a bug?

When using SSR with ngAspnetCoreEngine and Angular 5.0.0-rc.1, I am receiving below error:

NodeInvocationException: StaticInjectorError[{provide:ResourceLoader, useClass:FileLoader}]: 'deps' required
Error: StaticInjectorError[{provide:ResourceLoader, useClass:FileLoader}]: 'deps' required
at staticError (D:\MyProject\ClientApp\dist\main-server.js:6064:12)
at computeDeps (D:\MyProject\ClientApp\dist\main-server.js:6031:15)
at resolveProvider (D:\MyProject\ClientApp\dist\main-server.js:5826:33)
at recursivelyProcessProviders (D:\MyProject\ClientApp\dist\main-server.js:5883:53)
at recursivelyProcessProviders (D:\MyProject\ClientApp\dist\main-server.js:5872:17)
at recursivelyProcessProviders (D:\MyProject\ClientApp\dist\main-server.js:5872:17)
at new StaticInjector (D:\MyProject\ClientApp\dist\main-server.js:5783:9)
at Function.Injector.create (D:\MyProject\ClientApp\dist\main-server.js:5755:16)
at JitCompilerFactory.createCompiler (D:\MyProject\ClientApp\dist\main-server.js:152146:97)
at ngAspnetCoreEngine (D:\MyProject\ClientApp\dist\main-server.js:182617:36)
@Toxicable
Copy link

Toxicable commented Oct 10, 2017

Should be fixed by #825

@vikerman
Copy link
Contributor

@naveedahmed1 - The [email protected] has been published. Can you confirm this works? The default in npm is still 1.0.0-beta.3 since that's the version that Angular CLI uses.

@MarkPieszak
Copy link
Contributor

We're all set now, it's fixed 👍 @vikerman

@naveedahmed1
Copy link
Author

naveedahmed1 commented Oct 22, 2017

Thanks @vikerman got it working. Initially I was having issue due to angular/zone.js#934 in zonejs v0.8.18.

But now there is another issue, if I add the TransferState provided in Angular 5 I receive below error
"ERROR Error: The selector "app-root" did not match any elements" and that's because, the markup of the app isn't returned from server. I am following the steps described here
https://next.angular.io/api/platform-browser/TransferState

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants