{"action":"closed","issue":{"url":"https://api.github.com/repos/nikku/karma-browserify/issues/127","labels_url":"https://api.github.com/repos/nikku/karma-browserify/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/nikku/karma-browserify/issues/127/comments","events_url":"https://api.github.com/repos/nikku/karma-browserify/issues/127/events","html_url":"https://github.com/nikku/karma-browserify/issues/127","id":78571192,"number":127,"title":"require('express') throws error. ","user":{"login":"builtbylane","id":149081,"avatar_url":"https://avatars.githubusercontent.com/u/149081?v=3","gravatar_id":"","url":"https://api.github.com/users/builtbylane","html_url":"https://github.com/builtbylane","followers_url":"https://api.github.com/users/builtbylane/followers","following_url":"https://api.github.com/users/builtbylane/following{/other_user}","gists_url":"https://api.github.com/users/builtbylane/gists{/gist_id}","starred_url":"https://api.github.com/users/builtbylane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/builtbylane/subscriptions","organizations_url":"https://api.github.com/users/builtbylane/orgs","repos_url":"https://api.github.com/users/builtbylane/repos","events_url":"https://api.github.com/users/builtbylane/events{/privacy}","received_events_url":"https://api.github.com/users/builtbylane/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-20T15:31:47Z","updated_at":"2015-05-20T15:53:25Z","closed_at":"2015-05-20T15:53:25Z","body":"Having a problem require'ing express in a my test file. Any help would be much appreciated \r\n\r\n``` \r\n\r\nDEBUG [plugin]: Loading karma-* from /Users/lg/WORK/WWW/redef-client/node_modules\r\nDEBUG [plugin]: Loading plugin /Users/lg/WORK/WWW/redef-client/node_modules/karma-browserify.\r\nDEBUG [plugin]: Loading plugin /Users/lg/WORK/WWW/redef-client/node_modules/karma-chai.\r\nDEBUG [plugin]: Loading plugin /Users/lg/WORK/WWW/redef-client/node_modules/karma-chrome-launcher.\r\nDEBUG [plugin]: Loading plugin /Users/lg/WORK/WWW/redef-client/node_modules/karma-ejs-preprocessor.\r\nDEBUG [plugin]: Loading plugin /Users/lg/WORK/WWW/redef-client/node_modules/karma-firefox-launcher.\r\nDEBUG [plugin]: Loading plugin /Users/lg/WORK/WWW/redef-client/node_modules/karma-mocha.\r\nDEBUG [plugin]: Loading plugin /Users/lg/WORK/WWW/redef-client/node_modules/karma-nyan-reporter.\r\nDEBUG [plugin]: Loading plugin /Users/lg/WORK/WWW/redef-client/node_modules/karma-phantomjs-launcher.\r\nDEBUG [plugin]: Loading plugin /Users/lg/WORK/WWW/redef-client/node_modules/karma-sinon.\r\nDEBUG [framework.browserify]: created browserify bundle: /var/folders/fl/s2mq2h2x04xd4bhglgd9t1yr0000gn/T/5b7003a4e110f0ad300520c2d94a15d2.browserify\r\nINFO [framework.browserify]: registering rebuild (autoWatch=true)\r\nDEBUG [framework.browserify]: add bundle to config.files at position 5\r\nINFO [karma]: Karma v0.12.32 server started at http://localhost:9876/\r\nINFO [launcher]: Starting browser PhantomJS\r\nDEBUG [temp-dir]: Creating temp dir at /var/folders/fl/s2mq2h2x04xd4bhglgd9t1yr0000gn/T/karma-17715723\r\nDEBUG [launcher]: /Users/lg/WORK/WWW/redef-client/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs /var/folders/fl/s2mq2h2x04xd4bhglgd9t1yr0000gn/T/karma-17715723/capture.js\r\nDEBUG [framework.browserify]: building bundle\r\nDEBUG [framework.browserify]: updating test/http/routesSpec.js in bundle\r\nDEBUG [framework.browserify]: bundling\r\nDEBUG [web-server]: serving: /Users/lg/WORK/WWW/redef-client/node_modules/karma/static/client.html\r\nDEBUG [web-server]: serving: /Users/lg/WORK/WWW/redef-client/node_modules/karma/static/karma.js\r\nDEBUG [karma]: A browser has connected on socket EGsQhWMCEZdn47GOAAAA\r\nDEBUG [web-server]: upgrade /socket.io/?EIO=3&transport=websocket&sid=EGsQhWMCEZdn47GOAAAA\r\nINFO [PhantomJS 1.9.8 (Mac OS X)]: Connected on socket EGsQhWMCEZdn47GOAAAA with id 17715723\r\nDEBUG [launcher]: PhantomJS (id 17715723) captured in 1.596 secs\r\nDEBUG [karma]: All browsers are ready, executing\r\nINFO [framework.browserify]: 973029 bytes written (2.67 seconds)\r\nINFO [framework.browserify]: bundle built\r\nDEBUG [watcher]: Resolved files:\r\n\t/Users/lg/WORK/WWW/redef-client/node_modules/sinon/pkg/sinon.js\r\n\t/Users/lg/WORK/WWW/redef-client/node_modules/mocha/mocha.js\r\n\t/Users/lg/WORK/WWW/redef-client/node_modules/karma-mocha/lib/adapter.js\r\n\t/Users/lg/WORK/WWW/redef-client/node_modules/chai/chai.js\r\n\t/Users/lg/WORK/WWW/redef-client/node_modules/karma-chai/adapter.js\r\n\t/var/folders/fl/s2mq2h2x04xd4bhglgd9t1yr0000gn/T/5b7003a4e110f0ad300520c2d94a15d2.browserify\r\n\t/Users/lg/WORK/WWW/redef-client/test/http/routesSpec.js\r\nDEBUG [watcher]: Watching \"/var/folders/fl/s2mq2h2x04xd4bhglgd9t1yr0000gn/T/5b7003a4e110f0ad300520c2d94a15d2.browserify\"\r\nDEBUG [watcher]: Watching \"/Users/lg/WORK/WWW/redef-client/test/http\"\r\nDEBUG [web-server]: serving: /Users/lg/WORK/WWW/redef-client/node_modules/karma/static/context.html\r\nDEBUG [web-server]: serving (cached): /Users/lg/WORK/WWW/redef-client/node_modules/sinon/pkg/sinon.js\r\nDEBUG [web-server]: serving (cached): /Users/lg/WORK/WWW/redef-client/node_modules/mocha/mocha.js\r\nDEBUG [web-server]: serving (cached): /Users/lg/WORK/WWW/redef-client/test/http/routesSpec.js\r\nDEBUG [web-server]: serving (cached): /Users/lg/WORK/WWW/redef-client/node_modules/karma-mocha/lib/adapter.js\r\nDEBUG [web-server]: serving (cached): /Users/lg/WORK/WWW/redef-client/node_modules/karma-chai/adapter.js\r\nDEBUG [web-server]: serving (cached): /Users/lg/WORK/WWW/redef-client/node_modules/chai/chai.js\r\nDEBUG [web-server]: serving (cached): /var/folders/fl/s2mq2h2x04xd4bhglgd9t1yr0000gn/T/5b7003a4e110f0ad300520c2d94a15d2.browserify\r\nERROR [karma]: TypeError: 'undefined' is not a function (evaluating 'Error.captureStackTrace(obj)')\r\nat http://localhost:9876/absolute/var/folders/fl/s2mq2h2x04xd4bhglgd9t1yr0000gn/T/5b7003a4e110f0ad300520c2d94a15d2.browserify?7118b231e30358b43e64f44e6ae3f0fd5d1206eb:33070\r\n```"}}