{"action":"created","issue":{"url":"https://api.github.com/repos/justindujardin/ng2-material/issues/168","repository_url":"https://api.github.com/repos/justindujardin/ng2-material","labels_url":"https://api.github.com/repos/justindujardin/ng2-material/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/justindujardin/ng2-material/issues/168/comments","events_url":"https://api.github.com/repos/justindujardin/ng2-material/issues/168/events","html_url":"https://github.com/justindujardin/ng2-material/issues/168","id":148165152,"number":168,"title":"Error: XHR error (404 Not Found) loading http://localhost:9876/ng2-material/all","user":{"login":"JDillon522","id":4861202,"avatar_url":"https://avatars.githubusercontent.com/u/4861202?v=3","gravatar_id":"","url":"https://api.github.com/users/JDillon522","html_url":"https://github.com/JDillon522","followers_url":"https://api.github.com/users/JDillon522/followers","following_url":"https://api.github.com/users/JDillon522/following{/other_user}","gists_url":"https://api.github.com/users/JDillon522/gists{/gist_id}","starred_url":"https://api.github.com/users/JDillon522/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDillon522/subscriptions","organizations_url":"https://api.github.com/users/JDillon522/orgs","repos_url":"https://api.github.com/users/JDillon522/repos","events_url":"https://api.github.com/users/JDillon522/events{/privacy}","received_events_url":"https://api.github.com/users/JDillon522/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T19:48:05Z","updated_at":"2016-04-20T11:55:47Z","closed_at":null,"body":"I'm building out a new Angular 2 app with the Alpha Angular-CLI. In order to even get ng2-material to work I had to do the following:\r\n\r\n```\r\n// index.html\r\nSystem.config({\r\n  packages: {\r\n      app: {\r\n          format: 'register',\r\n          defaultExtension: 'js \r\n       },\r\n      'ng2-material': {\r\n          format: 'cjs',\r\n          defaultExtension: 'js',\r\n          main: 'all.js'\r\n      }\r\n  }\r\n  });\r\n  System.import('app.js').then(null, console.error.bind(console));\r\n\r\n// ember-cli-build.js\r\nvar materialTree = BroccoliFunnel('node_modules/ng2-material', {\r\n    destDir: 'ng2-material'\r\n});\r\n```\r\n\r\nIt works fine in the app itself. However, when I run ng test I get the following error:\r\n\r\n```\r\nSTART:\r\n\r\n13 04 2016 14:55:36.982:WARN [web-server]: 404: /ng2-material/all\r\n\r\nChrome 49.0.2623 (Mac OS X 10.11.3) ERROR\r\n\r\nError: XHR error (404 Not Found) loading http://localhost:9876/ng2-material/all\r\n\r\n at error (/../node_modules/systemjs/dist/system.src.js:1026:16)\r\n\r\n at XMLHttpRequest.xhr.onreadystatechange (/../node_modules/systemjs/dist/system.src.js:1047:13)\r\n...\r\n...\r\n13 04 2016 14:55:37.058:WARN [web-server]: 404: /ng2-material/all\r\n\r\n```\r\nWhat am I missing?"},"comment":{"url":"https://api.github.com/repos/justindujardin/ng2-material/issues/comments/212395766","html_url":"https://github.com/justindujardin/ng2-material/issues/168#issuecomment-212395766","issue_url":"https://api.github.com/repos/justindujardin/ng2-material/issues/168","id":212395766,"user":{"login":"axal90","id":2915671,"avatar_url":"https://avatars.githubusercontent.com/u/2915671?v=3","gravatar_id":"","url":"https://api.github.com/users/axal90","html_url":"https://github.com/axal90","followers_url":"https://api.github.com/users/axal90/followers","following_url":"https://api.github.com/users/axal90/following{/other_user}","gists_url":"https://api.github.com/users/axal90/gists{/gist_id}","starred_url":"https://api.github.com/users/axal90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axal90/subscriptions","organizations_url":"https://api.github.com/users/axal90/orgs","repos_url":"https://api.github.com/users/axal90/repos","events_url":"https://api.github.com/users/axal90/events{/privacy}","received_events_url":"https://api.github.com/users/axal90/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T11:55:47Z","updated_at":"2016-04-20T11:55:47Z","body":"```\r\nSystem.config({\r\n        defaultJSExtensions: true,\r\n        typescriptOptions: { emitDecoratorMetadata: true },\r\n        packages: {\r\n            'node_modules/ng2-material': {\r\n                format: 'cjs',\r\n                defaultExtension: 'js'\r\n            }\r\n        },\r\n        paths: {\r\n            'ng2-material/all': 'node_modules/ng2-material/all'\r\n        }\r\n    });\r\n```\r\nThis is my system js config, hope adding thew path helps."}}