Can't run example app (https://github.com/ngxs/store/tree/master/integration)
Do I need to do something else ?
Error: Can't resolve all parameters for StateFactory: (?, ?).
compiler.js:215
at syntaxError (http://localhost:4200/vendor.js:5960:17)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getDependenciesMetadata (http://localhost:4200/vendor.js:16552:35)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getTypeMetadata (http://localhost:4200/vendor.js:16445:26)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getInjectableTypeMetadata (http://localhost:4200/vendor.js:16667:21)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver.getProviderMetadata (http://localhost:4200/vendor.js:16676:22)
at http://localhost:4200/vendor.js:16614:49
at Array.forEach (<anonymous>)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getProvidersMetadata (http://localhost:4200/vendor.js:16574:19)
at http://localhost:4200/vendor.js:16197:118
at Array.forEach (<anonymous>)
Error: Can't resolve all parameters for StateFactory: (?, ?).
compiler.js:215
at syntaxError (http://localhost:4200/vendor.js:5960:17)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getDependenciesMetadata (http://localhost:4200/vendor.js:16552:35)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getTypeMetadata (http://localhost:4200/vendor.js:16445:26)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getInjectableTypeMetadata (http://localhost:4200/vendor.js:16667:21)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver.getProviderMetadata (http://localhost:4200/vendor.js:16676:22)
at http://localhost:4200/vendor.js:16614:49
at Array.forEach (<anonymous>)
at CompileMetadataResolver.push../node_modules/@angular/compiler/fesm5/compiler.js.CompileMetadataResolver._getProvidersMetadata (http://localhost:4200/vendor.js:16574:19)
at http://localhost:4200/vendor.js:16197:118
at Array.forEach (<anonymous>)
Please fill out the issue template and provide repo cases. Feel free to reopen when you can give us more info.
I'm getting the same issue. But i didn't understand the comment
"Please fill out the issue template and provide repo cases. Feel free to reopen when you can give us more info"
Please explain
@salomoni when you create an issue on github it asks you to provide several pieces of information that are necessary for us to help you solve your issue
@deebloo I don't quite follow, what's up?
Did you just upgrade to Angular 8? I'm getting a similar problem: Can't resolve all parameters for LoginComponent: (?, ?, ?)
@jtomek We can't reproduce, please create new issue if you have some problem
@junimohano the solution is to add @Injectable() after @State decorator in your state. It fixed my errors after upgrading to angular 9
Thanks @gradzio adding @Injectable() after @State solved problem
Most helpful comment
@junimohano the solution is to add @Injectable() after @State decorator in your state. It fixed my errors after upgrading to angular 9