Can't resolve all parameters for Location
See original GitHub issueI 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:
- Created 3 years ago
- Comments:12 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.