codechavez / angular-inline-editor

angular-inline-editor is a small Angular library that allows the experience to use editable elements (click-to-edit) without the pain and/or hassle.
https://www.npmjs.com/package/angular-inline-editors
MIT License
9 stars 11 forks source link

No provider for ElementRef #7

Open Slavrix opened 5 years ago

Slavrix commented 5 years ago
StaticInjectorError(AppModule)[NgClass -> ElementRef]: 
  StaticInjectorError(Platform: core)[NgClass -> ElementRef]: 
    NullInjectorError: No provider for ElementRef!

I'm getting this error when using the input-editor component.

"dependencies": { "@angular/animations": "^6.1.6", "@angular/common": "^6.1.6", "@angular/core": "^6.1.6", "@angular/forms": "^6.1.6", "@angular/http": "^6.1.6", "@angular/platform-browser": "^6.1.6", "@angular/platform-browser-dynamic": "^6.1.6", "@angular/router": "^6.1.6", "@babel/runtime": "7.0.0-beta.55", "@fortawesome/fontawesome-free": "^5.3.1", "@ng-bootstrap/ng-bootstrap": "^3.2.0", "@ngx-translate/core": "^10.0.2", "@ngx-translate/http-loader": "^3.0.1", "angular-6-datatable": "^0.8.0", "angular-inline-editor": "^1.0.2", "babel-runtime": "^6.20.0", "bcrypt": "^1.0.3", "bootstrap": "^4.1.3", "core-js": "^2.5.7", "file-saver": "^1.3.8", "jquery": "^3.3.1", "json2csv": "^4.2.1", "meteor-node-stubs": "^0.4.1", "meteor-rxjs": "^0.4.14", "moment": "^2.22.2", "ngx-moment": "^3.1.0", "popper.js": "^1.14.4", "rxjs": "^6.3.2", "rxjs-compat": "^6.3.2", "underscore": "^1.9.1", "zone.js": "^0.8.26" }, "devDependencies": { "@angular/compiler": "^6.1.6", "@angular/compiler-cli": "^6.1.6", "@angular/language-service": "^6.1.6", "@fortawesome/fontawesome": "^1.1.8", "@fortawesome/fontawesome-free-brands": "^5.0.13", "@fortawesome/fontawesome-free-regular": "^5.0.13", "@fortawesome/fontawesome-free-solid": "^5.0.13", "@types/jquery": "^3.3.6", "@types/leaflet": "1.0.60", "@types/lodash": "^4.14.116", "@types/meteor": "^1.4.20", "@types/meteor-accounts-phone": "0.0.5", "@types/meteor-publish-composite": "0.0.33", "@types/meteor-roles": "^1.2.31", "@types/node": "6.0.90", "@types/underscore": "^1.8.9", "ts-node": "~3.3.0", "tslint": "~5.8.0", "typescript": "^2.7.2" },

prasad8mhatre commented 5 years ago

did you got the solution for this reason

sunnyg1210 commented 5 years ago

getting the same issue. any fix for this yet?

clabough commented 4 years ago

'element: ElementRef, private _renderer: Renderer' needs to be removed from the constructor for every component