Skip to content

Commit

Permalink
Got casperjs working again
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Cresswell committed May 21, 2013
1 parent 28a782e commit f0eadb4
Show file tree
Hide file tree
Showing 10 changed files with 176 additions and 540 deletions.
2 changes: 1 addition & 1 deletion bin/browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ for (name in modules) {
b.ignore('casper');

b.bundle().pipe(web_bundle);
b.bundle({standalone: 'yadda'}).pipe(umd_bundle);
b.bundle({standalone: 'yadda_umd'}).pipe(umd_bundle);

Loading

5 comments on commit f0eadb4

@vlad-nikityuk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guys, probably you can help me.
Host: Ubuntu 13.10.
CasperJS installed using http://docs.casperjs.org/en/latest/installation.html#installing-from-git .

I'm getting an error:
/home/user/node_modules/yadda/examples/casper$ casperjs test.js
TypeError: 'undefined' is not an object (evaluating 'require.cache['/home/user/node_modules/yadda/examples/casper/google-library.js']')
/home/user/node_modules/yadda/examples/casper/google-library.js:38

But google-library.js contains only 37 lines.

@cressie176
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry you're having problems. I just tried yadda on Ubuntu 12.04 with casper latest stable and it runs OK. When I switch to latest from git I get

CasperError: can't find module async
/home/parallels/..../casperjs/bin/bootstrap.js:227 in patchRequire

My guess is they've changed the way require works, and the example has stopped working. I'll drop the casper guys a note and see if they can shed any light.

Thanks for reporting. I've created an issue here

@vlad-nikityuk
Copy link

@vlad-nikityuk vlad-nikityuk commented on f0eadb4 Sep 12, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cressie176
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The casperjs guys have pushed a fix to master, and I've updated the casperjs example in Yadda 0.4.7 accordingly. If you reinstall casperjs from git and follow this example everything should work

@vlad-nikityuk
Copy link

@vlad-nikityuk vlad-nikityuk commented on f0eadb4 Sep 23, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.