browserify / watchify

watch mode for browserify builds
Other
1.79k stars 181 forks source link

Requiring Karma test runner server *before* watchify causes gulp error #131

Closed corbanbrook closed 9 years ago

corbanbrook commented 9 years ago
var karma = require('karma').server
var watchify = require('watchify')

Took me a while to figure this one out but my gulp kept bailing with this error after bundle ran:

undefined:0

TypeError: undefined is not a function

Have only tested with gulp but I would assume there would be issues with other build processes as well.

Simply fixed the issue by requiring the karma server later in the actual 'test' task.

zertosh commented 9 years ago

This is super strange. karma and watchify both use chokidar, and that's always a little funky. Thanks for the tip!