Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't resolve all parameters for AngularFirestore #1206

Closed
ankemp opened this issue Oct 4, 2017 · 15 comments
Closed

Can't resolve all parameters for AngularFirestore #1206

ankemp opened this issue Oct 4, 2017 · 15 comments

Comments

@ankemp
Copy link

ankemp commented Oct 4, 2017

Version info

Angular: 4.4.x

Firebase: 4.3.0

AngularFire: 5.0.0-RC.1

Output during ng build --aot --prod

 11% building modules 10/10 modules 0 activeWarning: Can't resolve all parameters for AngularFirestore in /XXXProjectPathXXX/node_modules/firestore/index.d.ts: ([object Object], ?). This will become an error in Angular v5.x
Warning: Can't resolve all parameters for AngularFirestore in /XXXProjectPathXXX/node_modules/angularfire2/firestore/index.d.ts: ([object Object], ?). This will become an error in Angular v5.x
@davideast
Copy link
Member

@ankemp We're working on this and should have something in before the 5.0 release.

@edvillareal26
Copy link

@davideast so far still having this error. Hope to see fix soon.

Angular@4.4.4
Firebase@4.5.0
AngularFire@5.0.0-rc.2

Output during --aot --prod

Warning: Can't resolve all parameters for AngularFirestore in /Users//Documents/Projects//node_modules/angularfire2/firestore/index.d.ts: ([object Object], ?). This will become an error in Angular v5.x

@plackowski
Copy link

I have similar problem too

Uncaught Error: Can't resolve all parameters for AngularFirestore: ([object Object], ?).
at syntaxError (compiler.es5.js:1540)
at CompileMetadataResolver._getDependenciesMetadata (compiler.es5.js:14877)
at CompileMetadataResolver._getTypeMetadata (compiler.es5.js:14745)
at CompileMetadataResolver._getInjectableMetadata (compiler.es5.js:14731)
at CompileMetadataResolver.getProviderMetadata (compiler.es5.js:15021)
at compiler.es5.js:14950
at Array.forEach ()
at CompileMetadataResolver._getProvidersMetadata (compiler.es5.js:14911)
at CompileMetadataResolver.getNgModuleMetadata (compiler.es5.js:14566)
at JitCompiler._loadModules (compiler.es5.js:25630)

@angular/common: 4.1.1
@angular/compiler: 4.1.1
@angular/core: 4.1.1
@angular/forms: 4.1.1
@angular/http: 4.1.1
@angular/platform-browser: 4.1.1
@angular/platform-browser-dynamic: 4.1.1
@angular/router: 4.1.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.1.1

Firebase@4.5.0
AngularFire@5.0.0-rc.2

@ahmadalibaloch
Copy link

ahmadalibaloch commented Oct 15, 2017

AngularFirestore is not a provider i know, but in a rename process I got the same error, For me it was occurring, in development ng server, when I had listed AngularFirestore in providers of one of my AngularModules.

providers: [MatSnackBar, AngularFirestore],

When I removed it from the providers, the error disappeared.

@ankemp
Copy link
Author

ankemp commented Oct 15, 2017

@ahmadalibaloch AngularFirestore isn't a provider

You just need to import the modules you want to use, in the case of firestore, AngularFirestoreModule

@ahmadalibaloch
Copy link

AngularFirestore is not a provider i know, but in a rename process, i mistakenly did it and got the same error, so I posted here that may be it could be of help for identification and resolution.

@habib786
Copy link

So is there any solution for it?
When I just import AngularFirestore in my component, the error was No provider for AngularFirestore and when I import it my app.module file and call it in provider array, I am getting this error Can't resolve all parameters for AngularFirestore: ([object Object], ?).
Does anyone have solution for this?

@davideast
Copy link
Member

@habib786 This isn't something to worry about. It won't become an error until Angular 6 which is a long ways out. It also doesn't break your build. It has to do with the way the Angular CLI interprets namespaces, we're working on it.

@ahmadalibaloch
Copy link

@habib786 AngularFirestoreModule is the module which needs to be added in imports of your app.module file.

@Shemahmforash
Copy link

@davideast It seems that in the situation @habib786 described the warning suggests it will become an error in version 5 of angular, not version 6:

activeWarning: Can't resolve all parameters for AngularFirestore in /code/angular4/test-project/node_modules/angularfire2/firestore/index.d.ts: ([object Object], ?). This will become an error in Angular v5.x

@ghost
Copy link

ghost commented Oct 23, 2017

I am getting this error using version ^5.0.0-rc.3

@jwuliger
Copy link

Hello, I am also getting this error on NG 5.0.0-rc.6

@brndex
Copy link

brndex commented Oct 26, 2017

any updates?

@bdogan
Copy link

bdogan commented Oct 26, 2017

same error using version 5.0.0-rc.3

@davideast
Copy link
Member

This is not an error until Angular 6. It is just a warning. We will resolve it before the release.

@angular angular locked and limited conversation to collaborators Oct 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants