I have looked for answers over Google and Stackoverflow, but didn't find a solution.
I followed instructions from the website
My steps:
1) Created an Angular 4 project using ng new NGXTest
.
2)Inside the project folder, executed:
npm install @ngx-translate/core --save
npm install @ngx-translate/http-loader --save
3) Added imports:
import { HttpModule, Http } from '@angular/http';
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';`
4) Added to app.module.ts
next line:
export function createTranslateLoader(http: Http) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
And here is when the problem starts.
Error in Visual Studio Code, Web executing, and in Git terminal
And if I continue with the tutorial, i get also other errors in Git terminal.