core: Error loading ng2-translate.js in angular2 final release

I’m submitting a … (check one with “x”)

[x ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[x ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

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

Failed to load resource: the server responded with a status of 404 (Not Found)

I go to console log in index.html and see: error

Please tell us about your environment:

  • ng2-translate version: 3.0.1
  • Angular version: 2.0.1 final release
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (1 by maintainers)

Most upvoted comments

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 https://github.com/ocombe/ng2-translate/issues/251

@ocombe Hi, i fixed it before five minutes: In map section:

‘ng2-translate’: ‘npm:ng2-translate’

In packages section:

“ng2-translate”: { main: “bundles/index.js”, defaultExtension: “js” }

File was successfully uploaded, but error doesn’t remain. Seems it was fired by another item/package. Thanks for very fast answer 👍 Have a nice day.

@dawud-do please check the other issues, multiple solutions to these problems have been given.