-
Notifications
You must be signed in to change notification settings - Fork 162
Getting 404 error #58
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
Comments
HI @superzaky, i don't know if this is the issue that is causing the error but for starters try removing You don't need to register the provider again in your components the |
Hello @flauc thanks for your reply, but that didn't solved it unfortunately. The problem still occurs.. |
I'll have a look at the project over the weekend. Sorry i can't help sooner. |
Same problem here :( |
Could this be related to #25? See replies by @rkralston and @oytuntez. |
I am getting the same error... I am using |
hey guys I solved the problem, and it turned out to be system config issue, I will guide you through what I've done step-by-step: 1- Update your var Angular2App = require('angular-cli/lib/broccoli/angular2-app');
module.exports = function(defaults) {
return new Angular2App(defaults, {
vendorNpmFiles: [
'systemjs/dist/system-polyfills.js',
'systemjs/dist/system.src.js',
'zone.js/dist/**/*.+(js|js.map)',
'es6-shim/es6-shim.js',
'reflect-metadata/**/*.+(ts|js|js.map)',
'rxjs/**/*.+(js|js.map)',
'@angular/**/*.+(js|js.map)',
'angular2-notifications/**/*.+(js|js.map)' // <------------------- this is the line I added
]
});
}; 2- In your const packages: any = {
'angular2-notifications': {
format: 'cjs',
defaultExtension: 'js',
main: 'components.js'
},
}; 4- Finally to use the classes of this lib, import it in your For me this solved the 404 problem, but now I got another issue that is, the options of the notification, they are not working properly -_- |
Thank you @ashajjar 👍 |
Is anyone able to get this working with angular2-seed project from here https://github.com/mgechev/angular-seed#configuration I'm getting this error: |
@jseparovic +1 |
For those who still have the issue, try to map as follows in map: {
'angular2-notifications': 'npm:angular2-notifications'
} instead of map: {
'angular2-notifications': 'node_modules/angular2-notifications/components.js'
} |
Uh oh!
There was an error while loading. Please reload this page.
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:
superzaky/node-portfolio-zaky@9ff7b4d
Am I missing something or am I doing something wrong?
The text was updated successfully, but these errors were encountered: