azer / prova

Test runner based on Tape and Browserify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0.16.0 fails to browserify

joeybaker opened this issue · comments

Looks like there's a missing dep?

prova:browser Failed to browserify the source code. We're probably missing a module required. The error was: +15s

    Cannot find module 'sha.js' from '/…/node_modules/prova/node_modules/browserify/node_modules/crypto-browserify' /…/node_modules/prova/node_modules/browserify/node_modules/resolve/lib/async.js
                        v
    49.         else if (core[x]) return cb(null, x);
    50.         else cb(new Error("Cannot find module '" + x + "' from '" + y + "'"))
    51.     });
                        ^
    Error: Cannot find module 'sha.js' from '/…/node_modules/prova/node_modules/browserify/node_modules/crypto-browserify'

hmm, I ran it on bunch of projects and didn't have any issue. Looks like an issue about the crypto package

btw you can try rm -rf node_modules/prova

Huh. I just did a clean install of prova, and the problem did not go away. Somewhat interestingly, the error shows up twice per test run.

Here's the script we're using to run prova:

./node_modules/.bin/prova ./test/lib/*-test.js -b -e -l chrome -t hbsfy

yeah, I actually started getting the same error. #53 upgraded browserify, some new settings are messed up as I see. any ideas @thealphanerd ?

@joeybaker just published a patch as 1.16.1, does it fix ?

@thealphanerd were these options necessary? f805b23

I believe those options are necessary for watchify

https://github.com/substack/watchify#var-w--watchifyb-opts

I know that dominic tarr just updated crypto-browserify 3 hours ago... I'm digging in to see if this could be causing it

@thealphanerd I was getting different path errors though

try ./node_modules/prova/bin/prova test instead of global prova, that's how I reproduced the issue

I have chased it down to the updated version of crypto-browserify.

if you manually cd into `node_modules/browserifyandnpm install crypto-browserify@3.3.0`` then all is well in the universe

I'm going to run some diffs and see if I can chase down the error

This is breaking across all of browserify right now.

@azer you probably want to roll back the changes that you made to 0.16.1 as it will break watchify

Just submitted a fix... hopefully this gets merged quickly browserify/crypto-browserify#74

reverted & released as 1.16.2

Landed browserify/crypto-browserify@5efa463
@azer you can close this issue.

If anyone has this problem try an uninstall / reinstall of prova and the issue should be fixed

great, @thealphanerd thanks a lot