You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node: v8.11.1
NPM: v6.4.1
NG: v6.2.5
Operation System: macOS High Sierra
Repro steps
Upgrade our app from v6.0.0-beta.3 to the latest v6 (I've also tried v7) causes the error Can't resolve all parameters for LoginComponent (?). Followed steps from update.angular.io
The log given by the failure
Uncaught Error: Can't resolve all parameters for LoginComponent: (?). at syntaxError (compiler.js:1016) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getDependenciesMetadata (compiler.js:10917) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getTypeMetadata (compiler.js:10810) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver.getNonNormalizedDirectiveMetadata (compiler.js:10429) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getEntryComponentMetadata (compiler.js:11013) at compiler.js:11004 at Array.forEach (<anonymous>) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getEntryComponentsFromProvider (compiler.js:11003) at compiler.js:10976 at Array.forEach (<anonymous>)
Mention any other details that might be useful
I've also tried updating without using the schematics and I come across the same error. I've assumed we've done something strange in our repo which the update is not liking but there doesn't seem to be any useful errors to help us determine what is wrong. It seems to be Angular depedency injection failing? If I surround ALL constructor service injected parameters with @Inject() then it will work, but obviously that is not a solution. Stackoverflow was no help so I've come here.
The text was updated successfully, but these errors were encountered:
Providing some code examples would be helpful to determine whats going on. However, I think this is not the right repo to report this issue, As it doesn't seems to be related to the CLI per see.
Such errors usually happen because you are injecting something which is not an Injectable, nor Token
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Node: v8.11.1
NPM: v6.4.1
NG: v6.2.5
Operation System: macOS High Sierra
Repro steps
Upgrade our app from v6.0.0-beta.3 to the latest v6 (I've also tried v7) causes the error
Can't resolve all parameters for LoginComponent (?)
. Followed steps from update.angular.ioThe log given by the failure
Uncaught Error: Can't resolve all parameters for LoginComponent: (?). at syntaxError (compiler.js:1016) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getDependenciesMetadata (compiler.js:10917) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getTypeMetadata (compiler.js:10810) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver.getNonNormalizedDirectiveMetadata (compiler.js:10429) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getEntryComponentMetadata (compiler.js:11013) at compiler.js:11004 at Array.forEach (<anonymous>) at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getEntryComponentsFromProvider (compiler.js:11003) at compiler.js:10976 at Array.forEach (<anonymous>)
Mention any other details that might be useful
I've also tried updating without using the schematics and I come across the same error. I've assumed we've done something strange in our repo which the update is not liking but there doesn't seem to be any useful errors to help us determine what is wrong. It seems to be Angular depedency injection failing? If I surround ALL constructor service injected parameters with @Inject() then it will work, but obviously that is not a solution. Stackoverflow was no help so I've come here.
The text was updated successfully, but these errors were encountered: