azer / prova

Test runner based on Tape and Browserify
Other
333 stars 30 forks source link

0.16.0 fails to browserify #55

Closed joeybaker closed 9 years ago

joeybaker commented 9 years ago

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'
azer commented 9 years ago

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

joeybaker commented 9 years ago

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
azer commented 9 years ago

yeah, I actually started getting the same error. https://github.com/azer/prova/pull/53 upgraded browserify, some new settings are messed up as I see. any ideas @TheAlphaNerd ?

azer commented 9 years ago

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

@TheAlphaNerd were these options necessary? https://github.com/azer/prova/commit/f805b23b4c95d2eaf716de928aabab08ac86ec47

MylesBorins commented 9 years ago

I believe those options are necessary for watchify

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

MylesBorins commented 9 years ago

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

azer commented 9 years ago

@TheAlphaNerd I was getting different path errors though

azer commented 9 years ago

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

MylesBorins commented 9 years ago

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

MylesBorins commented 9 years ago

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.

MylesBorins commented 9 years ago

https://github.com/dominictarr/crypto-browserify/issues/73

MylesBorins commented 9 years ago

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

MylesBorins commented 9 years ago

Just submitted a fix... hopefully this gets merged quickly https://github.com/dominictarr/crypto-browserify/pull/74

azer commented 9 years ago

thanks a lot @TheAlphaNerd

azer commented 9 years ago

reverted & released as 1.16.2

MylesBorins commented 9 years ago

!!!

joeybaker commented 9 years ago

Thanks @TheAlphaNerd!

MylesBorins commented 9 years ago

Landed https://github.com/dominictarr/crypto-browserify/commit/5efa463d3fbc4c0db9567243855f04e6e1f9125a @azer you can close this issue.

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

azer commented 9 years ago

great, @TheAlphaNerd thanks a lot