You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let HelperClass = require(helperModule = config[helperName].require || './helper/'+helperName);
After this, the error was:
Error: Could not load helper UrlHelper from module './url_helper.js'
Cannot find module './url_helper.js'
I had a feeling that it tried to look for my module in /usr/local/lib/node_modules/codeceptjs (where container.js is), so I replaced ./url_helper.js in my package.json with an absolute path to the file. The file was loaded correctly after doing this.
The next error was that it couldn’t find codeceptjs/helper module that I require in my url_helper.js file, so I replaced it with an ugly absolute path to it /usr/local/lib/node_modules/codeceptjs/lib/helper. The helper was loaded correctly after this.
While it all works now for me, relying on absolute paths isn’t really a solution so I think I must be doing something wrong. Any help will be appreciated! I’m on node v4.2.3 if that helps.
Activity
DavertMik commentedon Dec 5, 2015
Thanks for the great report. I didn't check helpers loading for global installation. Shame on me
I will try to get it fixed asap
pim commentedon Dec 5, 2015
Thanks a lot!