Closed developper89 closed 8 years ago
problem solved
How did you fix it? I got the error: Error calling module function Cannot compile ....../files/app/tns_modules/ng2-translate/ng-tranlate.js SyntaxError: Unexpected token import File: ....../files/app/tns_modules/ng2-translate/ng-tranlate.js, line: 1, column: 60
imports: [
TranslateModule.forRoot({
provide: TranslateLoader,
useFactory: (http: Http) => new TNSTranslateLoader('/public/i18n'),
deps: [Http]
})
]
Problem solved too I used a newer version of ng2-translate (3.0.0). With the older version 2.4.4. it works!
Glad that you found it by yourself and sorry for answering now ..
i'm heaving trouble installing the actual version on the last nativescript-angular release , they upgraded to ng2.0