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

Cannot find module 'codeceptjs/helper' #48

Closed
acailly opened this issue Jan 12, 2016 · 2 comments

Comments

@acailly
Copy link

commented Jan 12, 2016

I tried to create an helper with the command 'codeceptjs gh'.
I immediatelly run 'codeceptjs run --steps' and I get the following error : Cannot find module 'codeceptjs/helper'
This require was generated by the 'gh' command.

I really just did what's on the website, any idea why it doesn't work as expected ?

Additionnal info :
I installed codecept globally as done in the quickstart.
I use node 4.2.2
I use codecept 0.2.4

@DavertMik DavertMik added the bug label Jan 13, 2016

@DavertMik

This comment has been minimized.

Copy link
Member

commented Jan 21, 2016

Should be fixed now and in 0.2.5

You should regenerate your helper file. Instead of require('codeceptjs/helper') you can use codecept_helper to set a parent for your Helper

@acailly

This comment has been minimized.

Copy link
Author

commented Jan 21, 2016

It works, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.