{"action":"closed","issue":{"url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/809","repository_url":"https://api.github.com/repos/valor-software/ng2-bootstrap","labels_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/809/labels{/name}","comments_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/809/comments","events_url":"https://api.github.com/repos/valor-software/ng2-bootstrap/issues/809/events","html_url":"https://github.com/valor-software/ng2-bootstrap/issues/809","id":169093008,"number":809,"title":"Karma Error: Missing dependencies","user":{"login":"Kize","id":6702319,"avatar_url":"https://avatars.githubusercontent.com/u/6702319?v=3","gravatar_id":"","url":"https://api.github.com/users/Kize","html_url":"https://github.com/Kize","followers_url":"https://api.github.com/users/Kize/followers","following_url":"https://api.github.com/users/Kize/following{/other_user}","gists_url":"https://api.github.com/users/Kize/gists{/gist_id}","starred_url":"https://api.github.com/users/Kize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kize/subscriptions","organizations_url":"https://api.github.com/users/Kize/orgs","repos_url":"https://api.github.com/users/Kize/repos","events_url":"https://api.github.com/users/Kize/events{/privacy}","received_events_url":"https://api.github.com/users/Kize/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-03T09:57:20Z","updated_at":"2016-09-26T11:45:54Z","closed_at":"2016-09-26T11:45:54Z","body":"Hi all,\r\n\r\nI'm trying to add ng2-bootstrap to Karma *(v0.13.22)*, but I'm stuck with the same message error :\r\n\r\n```\r\nMissing error handler on 'socket'.\r\nTypeError: (msg || \"\").replace is not a function\r\n```\r\n\r\nThis error usually means that dependencies are not correctly included, but I really don't know what I'm doing wrong...\r\n\r\nMy __karma.conf.js__ file :\r\n\r\n```\r\nfiles: [\r\n\t...\r\n\t'node_modules/moment/moment.js',\r\n\t{pattern: 'node_modules/ng2-bootstrap/**/*.js', included: false, watched: false},\r\n\t{pattern: 'node_modules/ng2-bootstrap/**/*.js.map', included: false, watched: false},\r\n\t...\r\n]\r\n```\r\nI tried to include only this file instead : `'node_modules/ng2-bootstrap/ng2-bootstrap.js'`, but it doesn't change anything.\r\n\r\n\r\nMy __karma-test-shim.js__ file :\r\n\r\n```\r\nSystem.config(\r\n\t{\r\n\t\tmap: {\r\n\t\t\t...\r\n\t\t\t'moment': 'node_modules/moment',\r\n\t\t\t'ng2-bootstrap': 'node_modules/ng2-bootstrap'\r\n\r\n\t\t},\r\n\t\tpackages: {\r\n\t\t\t...\r\n\t\t\t'moment': {\r\n\t\t\t\tdefaultExtension: 'js'\r\n\t\t\t},\r\n\t\t\t'ng2-bootstrap': {\r\n\t\t\t\tdefaultExtension: 'js',\r\n\t\t\t\tmain: 'ng2-bootstrap.js'\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n```\r\nI added moment, but I am only using Modals from ng2-bootstrap, so dependencies with **moment.js** should not be a problem.\r\n\r\n\r\nIf someone has an idea, I'd be really grateful. :pray: "}}
{"actor":{"display_login":"Martin-Wegner"}}