question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't resolve all parameters for Location

See original GitHub issue

I upgraded to Angulr9 (ssr) and enabled Ivy. but I got the error Can't resolve all parameters for Location I don’t use the service ‘Location’ at all, and all services uses @Injectable

anyway, the error trace doesn’t show clearly wher is the source of this error.

Error: Can't resolve all parameters for Location: (?, ?).
    at syntaxError (D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:2845:21)
    at CompileMetadataResolver._getDependenciesMetadata (D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23397:39)
    at CompileMetadataResolver._getTypeMetadata (D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23289:30)
    at CompileMetadataResolver._getInjectableTypeMetadata (D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23515:25)
    at CompileMetadataResolver.getProviderMetadata (D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23524:26)
    at D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23462:53
    at Array.forEach (<anonymous>)
    at CompileMetadataResolver._getProvidersMetadata (D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23419:23)
    at D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23421:27
    at Array.forEach (<anonymous>)
    at CompileMetadataResolver._getProvidersMetadata (D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23419:23)
    at D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23038:76
    at Array.forEach (<anonymous>)
    at CompileMetadataResolver.getNgModuleMetadata (D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23029:53)
    at CompileMetadataResolver.getNgModuleSummary (D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:22964:39)
    at D:\Downloads\__projects\dev\NodeJs\almogtama3\node_modules\@angular\compiler\bundles\compiler.umd.js:23051:59

reproduction: https://github.com/goblins-tech/almogtama3/tree/tmp

run npm run build:browser:dev && npm run build:server:dev && npm run serve:inspect

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
eng-dibocommented, Jun 4, 2020

I already read all comments of https://github.com/angular/angular/issues/35924 but no any solution could help. also the service that caused the error is difference

@ericmartinezr

0reactions
angular-automatic-lock-bot[bot]commented, Nov 12, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when trying to inject a service into an angular ...
The error I get in the browser console is this: EXCEPTION: Can't resolve all parameters for HeaderComponent: (?). I have the service in...
Read more >
Fixing the “can't resolve all parameters” exception with ...
Here's what the error looked like: Can't resolve all parameters for QuillConfigurationDirective: [object Object], (?). The (?) indicates that Angular couldn't ...
Read more >
Can't resolve all parameters for Location: (?, ?) #34526 - GitHub
bug report Affected Package @angular/router (might be caused by other packages) Is this a regression? Yes, worked fine before upgrading to ...
Read more >
Can't resolve all parameters for component in Angular
Can't resolve all parameters for AppComponent: (?). Most сases can be resolved by adding following line in the tsconfig.json : "compilerOptions" ...
Read more >
Angular 2: Can't resolve all parameters for ... - Google Groups
You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found