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.

Getting 404 error

See original GitHub issue

I want to use this library, but I’m getting the following error: Error: Error: XHR error (404 Not Found) loading http://localhost:8000/angular2-notifications(…)

It says 404 not found, but when I click on NotificationsService in my IDE then it goes to the declaration.

Also I did followed your example. Here is my commit where you can see that I had followed your example: https://github.com/superzaky/node-portfolio-zaky/commit/9ff7b4d43d3ebc9c8f2dc94891290c611d150deb

Am I missing something or am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
flauccommented, Sep 29, 2016

Thank you @ashajjar 👍

0reactions
shavindraSNcommented, Nov 28, 2016

For those who still have the issue, try to map as follows in system.config.js. It worked for me.

 map: {
    'angular2-notifications': 'npm:angular2-notifications'
 } 

instead of

map: {
  'angular2-notifications': 'node_modules/angular2-notifications/components.js'
} 
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error 404: 4 Ways to Fix It - Hostinger
Error 404 is a response code, meaning the server could not locate the requested content. Check this article to learn 4 steps to...
Read more >
Error 404 not found - What does it mean & how to fix it! - IONOS
The typical trigger for an error 404 message is when website content has been removed or moved to another URL. There are also...
Read more >
How to Find and Fix 404 Errors - Neil Patel
A 404 error is a code that indicates a requested page cannot be found. Whenever a page loads in a browser, it has...
Read more >
404 Page Not Found Error: What It Is and How to Fix It - Lifewire
The 404 Not Found error, also called Error 404 or an HTTP 404 error, means that the web page you were trying to...
Read more >
What Does an Error 404 Mean? Fix the Page Not Found Error ...
In technical terms, the error 404 message is an HTTP status code. It means that your browser has connected with the server, but...
Read more >

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