-
Notifications
You must be signed in to change notification settings - Fork 78
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
No provider for ElementRef #35
Comments
It works fine on v0.0.9 |
@rachid-boukhani How are you building the app? Are you using ng build? "dependencies": { Please check if you can use these versions. But if need a specific feature/bug fix and need to stick to a particular version please let me know. |
@rachid-boukhani Were you able to fix this? |
Hello, I am having the same error. My dependencies: "dependencies": { Error messages: ERROR Error: StaticInjectorError(AppModule)[FileUploadInputFor -> ElementRef]: ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[FileUploadInputFor -> ElementRef]: I am also getting some warnings about circular dependencies and I don't know if these can be related to this error. I will throw them in just in case. Warnings: WARNING in ./node_modules/angular-material-fileupload/node_modules/@angular/core/fesm5/core.js 18358:15-36 |
I am getting this error as well. Using ng serve |
Here are my dependencies
|
Getting this error as well:
|
Ok updating to angular 7.2.7 and making sure CDK and Material matched version was key to getting this to work |
@Fyb3roptik Glad it worked, was facing similar issues #35 (comment). |
What did the trick for me, was reinstalling the module, after updating angular to the latest version. That also took rid of the circular dependency warnings I mentioned: #35 My final dependency list, with which the module is functioning accordingly:
|
@Lukade Glad to hear it worked, it's a good idea to match cdk and material versions to angular. |
@rachid-boukhani Can you try the above method? |
@rachid-boukhani Were you able to try it? |
Hi, I have the same problem and I am not able to fix it. My package is:
any help? |
Experiencing the same problem, unfortunately. Here's my settings and thanks in advance
|
Same problem here with the same settings as @a-bradaric |
I have the same issues. |
Hi
I get this error with the latest version (v2.0.0) when I follow the exact steps mentioned on the doc:
FilingUploadDialogComponent.html:2 ERROR Error: StaticInjectorError(AppModule)[FileUploadInputFor -> ElementRef]:
StaticInjectorError(Platform: core)[FileUploadInputFor -> ElementRef]:
NullInjectorError: No provider for ElementRef!
at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (core.js:8894)
at resolveToken (core.js:9139)
at tryResolveToken (core.js:9083)
at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:8980)
at resolveToken (core.js:9139)
at tryResolveToken (core.js:9083)
at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:8980)
at resolveNgModuleDep (core.js:21119)
at NgModuleRef_.push../node_modules/@angular/core/fesm5/core.js.NgModuleRef_.get (core.js:21808)
at resolveDep (core.js:22179)
I'm using:
"@angular/cdk": "6.1.0",
"@angular/common": "^7.2.4",
"@angular/compiler": "^7.2.4",
"@angular/core": "^7.2.4",
"@angular/forms": "^7.2.4",
"@angular/http": "^7.2.4",
"@angular/material": "6.1.0",
"@angular/platform-browser": "^7.2.4",
"@ngrx/core": "^1.2.0",
"@ngrx/effects": "^6.0.1",
"@ngrx/router-store": "^6.0.1",
"angular-material-fileupload": "^2.0.0",
The text was updated successfully, but these errors were encountered: