mantoni / mocaccino.js

Mocha test runner as a Browserify plugin
MIT License
22 stars 12 forks source link

`b.noParse` is not a function/does not exist #6

Closed rektide closed 10 years ago

rektide commented 10 years ago

Hello, I'm attempting to call browserify -p mocaccino test.js (browserify 5.9.1, mocaccino 0.8.0) and getting this error:

/home/rektide/projects/foo/node_modules/mocaccino/lib/mocaccino.js:30
    b.noParse(require.resolve('mocha/mocha'));
      ^
TypeError: undefined is not a function
    at module.exports (/home/rektide/projects/WMX/node_modules/mocaccino/lib/mocaccino.js:30:7)
    at Browserify.plugin (/usr/local/lib/node_modules/browserify/index.js:208:9)
    at /usr/local/lib/node_modules/browserify/bin/args.js:99:15
    at Array.forEach (native)
    at module.exports (/usr/local/lib/node_modules/browserify/bin/args.js:94:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/browserify/bin/cmd.js:6:26)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:349:32)
    at Function.Module._load (module.js:305:12)

FWIW, I did an Object.keys(b) right before this line and got: [ '_options', '_external', '_exclude', '_ignore', '_expose', '_hashes', '_pending', '_entryOrder', '_extensions', '_mdeps', '_bpack', '_recorded', 'pipeline', 'argv' ]

mantoni commented 10 years ago

I already started work on support for Browserify 5. The current implementation still requires 4.x.x.

mantoni commented 10 years ago

Starting with version 1.0.0, mocaccino now supports Browserify 5. Please upgrade.