No provider for TranslateService!
See original GitHub issuewe use electron, ng 5x and ngx-translate 10x we following the Step by step instructions (step 5 minimal Setup)
when we use the grid the following error occurs and we do not know how to fix it.
core.js:1448 ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[AngularSlickgridComponent -> TranslateService]: StaticInjectorError(Platform: core)[AngularSlickgridComponent -> TranslateService]: NullInjectorError: No provider for TranslateService! Error: StaticInjectorError(AppModule)[AngularSlickgridComponent -> TranslateService]: StaticInjectorError(Platform: core)[AngularSlickgridComponent -> TranslateService]: NullInjectorError: No provider for TranslateService! at _NullInjector.webpackJsonp../node_modules/@angular/core/esm5/core.js._NullInjector.get (core.js:1002) at resolveToken (core.js:1300) at tryResolveToken (core.js:1242) at StaticInjector.webpackJsonp../node_modules/@angular/core/esm5/core.js.StaticInjector.get (core.js:1110) at resolveToken (core.js:1300) at tryResolveToken (core.js:1242) at StaticInjector.webpackJsonp../node_modules/@angular/core/esm5/core.js.StaticInjector.get (core.js:1110) at resolveNgModuleDep (core.js:10854) at _createClass (core.js:10891) at _createProviderInstance$1 (core.js:10865) at _NullInjector.webpackJsonp../node_modules/@angular/core/esm5/core.js._NullInjector.get (core.js:1002) at resolveToken (core.js:1300) at tryResolveToken (core.js:1242) at StaticInjector.webpackJsonp../node_modules/@angular/core/esm5/core.js.StaticInjector.get (core.js:1110) at resolveToken (core.js:1300) at tryResolveToken (core.js:1242) at StaticInjector.webpackJsonp../node_modules/@angular/core/esm5/core.js.StaticInjector.get (core.js:1110) at resolveNgModuleDep (core.js:10854) at _createClass (core.js:10891) at _createProviderInstance$1 (core.js:10865) at resolvePromise (zone.js:809) at resolvePromise (zone.js:775) at zone.js:858 at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:4740) at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at Zone.webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at drainMicroTaskQueue (zone.js:595) at <anonymous>
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (7 by maintainers)
Top GitHub Comments
@harryhahn @vseyedzadeh I just encountered this problem, so I am able to reproduce it. So here’s the thing, my lib is tested with
ngx-translate
version9.x.x
but 2 weeks ago they released10.x.x
which has a breaking changeI also made a change lately to use any version of
ngx-translate
via>=
as"@ngx-translate/core": ">=9.1.1",
which is obviously bad considering the latest breaking change.So the solution is the install previous version of
ngx-translate
, if you have (and you probably have) installed version10.x.x
please remove it and install it withor simply edit your
package.json
file, as I did, with these fixed versionsI also update my lib to make sure it is the previous version used, my lib is now at version
0.16.4
Sorry about that guys, I was totally in the dark before I ran into the problem just now. Please give that a try and hopefully that works because I’m falling in vacation tomorrow
EDIT Update all the Wiki references as well. Please give it a try again
@ghiscoding Thanks for your pointer. I finally decided to work angular-slickgrid. After changing the typescript to 3.x, everything worked. I have also created a public gist of how to set columns dynamically, context menu https://gist.github.com/coolrb/8e2fa6d4a19f54c11500aafbb87ceba1