Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect require("mocha") and provide helpful error. #8

Closed
indolering opened this issue May 28, 2014 · 6 comments
Closed

Detect require("mocha") and provide helpful error. #8

indolering opened this issue May 28, 2014 · 6 comments

Comments

@indolering
Copy link

Currently, having require("mocha") in your code produces a rather unhelpful error:
Error: module "../suite" not found from ".../node_modules/mocha/mocha.js"

@mantoni
Copy link
Owner

mantoni commented May 28, 2014

This message is coming from Browserify. Can you provide a little more context?

  • Are you passing any arguments to mochify?
  • Is it installed globally or locally?
  • What does the directory structure look like?

@indolering
Copy link
Author

I think the issue is that I added "mocha" as a require, not fully groking how the system works. I'll try to add some examples later.

You should create a Github site for this project, it's SUPER useful!

@mantoni
Copy link
Owner

mantoni commented May 29, 2014

Thanks! I've tried to add support for require('mocha'); in test cases, but it's not trivial to do.

@indolering
Copy link
Author

@mantoni in that case, see changes above : )

@indolering indolering changed the title Error: module "../suite" not found from ".../node_modules/mocha/mocha.js" Detect require("mocha") and provide helpful error. May 30, 2014
@mantoni
Copy link
Owner

mantoni commented May 30, 2014

@indolering So you just changed the title and content of the issue completely? That's very confusing and the communication here does not make any sense to others anymore. Please don't do that.
Closing and opening a new issue.

@mantoni
Copy link
Owner

mantoni commented Jun 6, 2014

Should be working now. Please re-install so that you get mocaccino 0.6.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants