404 not found with angular2 rc1 #216
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I am trying to use ng-file-upload with Angular2 rc 1 that released early of this month following example, but still browser console returns 404 not found. https://github.com/valor-software/ng2-file-upload/issues/196 this article already referenced..
in system-config.js, fixed like as below
Any other setting needed?
Please let me know if I have missing point.
Best,
In my opinion, you're missing the
defaultJSExtensionconfig for SystemJS. Furthermore I'd suggest using apathsmapping instead ofmapfor packages innode_modules.Try this:
And:
@marvinscharle ,
Changed as you mentioned, but still can't load ng2-file-upload.js... ng2-file-upload exists under the node_modules directory..
when change paths like as below, angular2 can't load main.js
Solved this issue temporary by just moving node_modules/ng2-file-upload directory to src/assets/js/ng2-file-modules, and change map code like below:
Although this is not related to ng2-file-upload, in my opinion your main.js should be part of an package, like:
Then you can include your
main.jslike this:Not able to find System.config