-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
Error: Cannot read property 'getOptional' of undefined(…) #42
Comments
Hello, |
Same problem. I don't understand, because in this post angular/angular#5755, it say there is a problem with es6-shim lib. But in your showcase project, you use this lib. |
Maybe it's a question of version of the libs? |
Oh thank you. Here an example with this problem: https://github.com/guillaumeleone/ng2-cli-translate |
I have the same issue,
ng2_translate_1.TRANSLATE_PROVIDERS is undefined. |
@qsahmed check the version of ng2-translate that you use :) the last one is 1.11.0 |
Thanks for the quick reply. |
This error message is a consequence, original error is that injector could not resolve dependency. Almost impossible to trace unresolved component without putting |
I have tried the ng2-translate, but I at runtime when it tries to use TranslateService:
"devDependencies": {
"grunt": "~0.4.5",
"grunt-cli": "~0.1.13",
"grunt-contrib-copy": "~0.8.1",
"i18next-client": "~1.11.0",
"jquery": "~2.2.0",
"knockout": "~3.4.0",
"log4js": "~0.6.27",
"requirejs": "~2.1.20",
"sockjs": "~0.3.15",
"typescript": "^1.7.3"
},
"dependencies": {
"bootstrap": "3.3.5",
"font-awesome": "4.5.0",
"angular2": "2.0.0-beta.0",
"es6-promise": "3.0.2",
"es6-shim": "0.33.13",
"ng2-translate": "1.7.3",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"systemjs": "0.19.6",
"zone.js": "0.5.13"
}
The text was updated successfully, but these errors were encountered: