-
-
Notifications
You must be signed in to change notification settings - Fork 571
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 loading ng2-translate.js in angular2 final release #270
Comments
+1 |
Try to set config.paths in your SystemJS config to this object: paths: {
"ng2-translate/ng2-translate": "node_modules/ng2-translate/bundles/ng2-translate.js"
} See #251 |
@dhardtke You saved my day! |
I had the same error, thank you! |
or you can set in SystemJS: map: { It work for me! Thanks all! |
@dhardtke You saved my day either! |
I have been looking for another issues with the same problem and ways to resolve it, but didn't find a way.
And i was uisng below code in systemjs.config.js:
I am using v3.1.3 of package and Typescript v.2.0.3.
But in my folder doesn't exist such file. In this folder exists another files: index.js, indexd.ts and ng2-translate.d.ts. I'm totally destroyed with the error. Can anyone help me? |
You should just use |
Or if you really need the full path, you can use |
@ocombe Hi, i fixed it before five minutes:
In packages section:
File was successfully uploaded, but error doesn't remain. Seems it was fired by another item/package. |
@unsafePtr |
@ortichon @ocombe,
Then i received much more helpful exception. |
If you get a traceur error, it's that it tries to load typescript files instead of compiled js files (and since you didn't install traceur it doesn't work). |
@ocombe I have some installed package which name is ng2-ckeditor. SystemJs successfully upload its js file without any errors. The definition in my config for this package: May be for some reason SystemJs get confused and getting to transiple ng2-translate.js file.... |
Navigate this for information. Just my another thought. |
Fixed it with changing import path in components from "ng2-translate/ng2-translate" to "ng2-translate". |
Missed this thread. More information in here #219 (comment). |
I get
when running karma test of an angular2 seed base. the suggestions in here haven't been working for me. for instance if I include path to bundles in my config.ts I just get a new error saying it can't find that. any clue where I might want to look? |
@dawud-do please check the other issues, multiple solutions to these problems have been given. |
I'm submitting a ... (check one with "x")
Reproduction of the problem
I have problem with ng2-translate lastest (3.0.1)
When I make example quickstart angular2 , then I import ng2-translate set up like README and I see error
I go to console log in index.html and see:
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: