Codeceptjs: Error: Could not load plugin wdio from module './plugin/wdio': Cannot read property 'outputDir' of undefined

Created on 3 Apr 2020  路  12Comments  路  Source: codeceptjs/CodeceptJS

I get this error when I try to run the case using command:
npx codeceptjs run --steps

Error:
Could not load plugin wdio from module './plugin/wdio':
Cannot read property 'outputDir' of undefined

Here is the package.json:
{
"name": "example",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@wdio/cli": "^6.0.13",
"@wdio/selenium-standalone-service": "^6.0.12",
"codeceptjs": "^2.6.0",
"webdriver": "^6.0.13"
},
"dependencies": {
"webdriverio": "^6.0.13"
}
}
Looking for some solution at the earliest. Thanks.

bug

All 12 comments

That鈥檚 something changed in how the wdio service is called. We should look into the wdio service plugin.

What exactly do I have to check? What all information should I be providing to resolve this?

You can check the wdio service of codeceptjs and wdio selenium service and check how the new arguments are passed to start the service.

I am new to this and just started using it for POC. It will be great if you can let me know how to check it.

I have the same problem in Webdriverio v6.

I mean... everybody

Additionally. CodeceptJS reports, that I use Webdriverio v5, but I have already updated it.
image

@pablopaul, it didn't help

Checked everything twice, still same error. I have the latest version of everything, reinstalled it 3 times

same issue happening with me as well. Reinstalled many times. no luck

// Not working

"devDependencies": {
"@codeceptjs/configure": "^0.5.2",
"@reportportal/agent-js-codecept": "^0.2.3",
"@wdio/cli": "^6.3.6",
"@wdio/selenium-standalone-service": "^6.1.14",
"allure-commandline": "^2.13.0",
"codeceptjs": "^2.6.6",
"webdriverio": "^6.1.23"
}

// working
"devDependencies": {
"@reportportal/agent-js-codecept": "^0.2.3",
"@wdio/cli": "^6.3.6",
"@wdio/selenium-standalone-service": "^6.1.14",
"allure-commandline": "^2.13.0",
"codeceptjs": "^2.6.6",
"webdriverio": "^6.1.23"
}

don't know what is wrong with @codeceptjs/configure. may be its referering to old wdio library.

We're having the same issue here. From what I'm seeing, codeceptjs is requiring "@codeceptjs/configure": "^0.4.1" however, with npm sementic that will not update configure to the latest version (https://docs.npmjs.com/cli/v6/using-npm/semver#caret-ranges-123-025-004)

version 0.4.1 of configure still uses webdriverio v5
lastest version 0.6.0 has been updated to use webdriverio v6

This issue should be be reopened!

It also seem to be related to

2610

2562

2567

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ebuster picture ebuster  路  16Comments

waryhermit picture waryhermit  路  12Comments

tony204 picture tony204  路  15Comments

TestdeTester picture TestdeTester  路  10Comments

willhowlett picture willhowlett  路  9Comments