Skip to content

Can't resolve all parameters for .... This will become an error in Angular v6.x  #24414

@FrancescoBorzi

Description

@FrancescoBorzi

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

I have 4 classes:

classes A, C and D are used as Services and correctly added to the providers list of my module. Class B is NOT used as a service.

Current behavior

Everything works fine but I got this warning:

Can't resolve all parameters for ClassBService in /path/to/class-b.service.ts: ([object Object], ?). This will become an error in Angular v6.x

Expected behavior

Not sure if some action on my side is required or this warning should not be displayed.

Demo

Clone the repository, run npm install and then ng build --prod. You'll see the warning.

https://github.com/ShinDarth/angular-test/

FrancescoBorzi/angular-test@4101bc5

Environment

Angular CLI: 1.7.4
Node: 8.10.0
OS: linux x64
Angular: 5.2.11
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.6.2
webpack: 3.11.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions