question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error loading ng2-translate.js in angular2 final release

See original GitHub issue

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]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
dhardtkecommented, Oct 6, 2016

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

4reactions
unsafePtrcommented, Oct 25, 2016

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found