title: Error: The "from" argument must be of type string. Received undefined
body: <p>I am using webdriverIO v7 (latest stable version) and cucumber.<br />
  I get that error: <code>Error: The &quot;from&quot; argument must be of type string. Received undefined</code><br />
  This is the stack trace:</p>
  <pre><code>2021-04-08T18:29:37.403Z ERROR @wdio/runner: TypeError [ERR_INVALID_ARG_TYPE]: The &quot;from&quot; argument must be of type string. Received undefined
      at validateString (internal/validators.js:120:11)
      at Object.relative (path.js:437:5)
      at getDefinitionLineAndUri (C:\my-project\node_modules\cucumber\lib\support_code_library_builder\build_helpers.js:184:27)
      at buildStepDefinitionConfig (C:\my-project\node_modules\cucumber\lib\support_code_library_builder\build_helpers.js:124:7)
      at SupportCodeLibraryBuilder.defineStep (C:\my-project\node_modules\cucumber\lib\support_code_library_builder\index.js:51:79)
      at Object.&lt;anonymous&gt; (C:\my-project\src\step_definitions\/accountSummary_steps.js:6:1)
      at Module._compile (internal/modules/cjs/loader.js:1137:30)
      at Module._compile (C:\my-project\node_modules\pirates\lib\index.js:99:24)
      at Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
      at Object.newLoader [as .js] (C:\my-project\node_modules\pirates\lib\index.js:104:7)
      at Module.load (internal/modules/cjs/loader.js:985:32)
      at Module._load (internal/modules/cjs/loader.js:878:14)
      at Function.hookedLoader [as _load] (C:\my-project\node_modules\mockery\mockery.js:111:12)
      at Module.require (internal/modules/cjs/loader.js:1025:19)
      at require (internal/modules/cjs/helpers.js:72:18)
      at C:\my-project\node_modules\@wdio\cucumber-framework\build\index.js:204:13   
  </code></pre>
  <p>In my accountSummary_steps.js on line 6 is only this:</p>
  <pre><code>    import loggedInHeaderModule from &quot;../pages/modules/loggedInHeaderModule&quot;
      import accountSummaryPage from &quot;../pages/accountSummaryPage&quot;
  
  import {Then, When} from 'cucumber';
      When(/^I click on My account details link$/, function () { // This is line 6
          loggedInHeaderModule.openAccountSummary();
      });  
  </code></pre>
  <p>This is my package.json dependencies:</p>
  <pre><code>&quot;dependencies&quot;: {
      &quot;@babel/cli&quot;: &quot;^7.2.3&quot;,
      &quot;@babel/plugin-proposal-export-default-from&quot;: &quot;^7.5.2&quot;,
      &quot;@babel/preset-env&quot;: &quot;^7.4.2&quot;,
      &quot;@babel/register&quot;: &quot;^7.4.0&quot;,
      &quot;@types/cucumber&quot;: &quot;^7.0.0&quot;,
      &quot;@wdio/cli&quot;: &quot;^7.3.1&quot;,
      &quot;@wdio/config&quot;: &quot;^7.3.1&quot;,
      &quot;@wdio/cucumber-framework&quot;: &quot;^7.3.1&quot;,
      &quot;@wdio/local-runner&quot;: &quot;^7.3.1&quot;,
      &quot;@wdio/selenium-standalone-service&quot;: &quot;^7.3.1&quot;,
      &quot;@wdio/spec-reporter&quot;: &quot;^7.3.1&quot;,
      &quot;@wdio/sync&quot;: &quot;^7.3.1&quot;,
      &quot;chai&quot;: &quot;^4.3.4&quot;,
      &quot;cucumber&quot;: &quot;^6.0.5&quot;,
      &quot;eslint-plugin-wdio&quot;: &quot;^7.0.0&quot;,
      &quot;file-system&quot;: &quot;^2.2.2&quot;,
      &quot;mjpeg-consumer&quot;: &quot;^2.0.0&quot;,
      &quot;node-fetch&quot;: &quot;^2.6.1&quot;,
      &quot;webdriverio&quot;: &quot;^7.3.1&quot;,
      &quot;yarn&quot;: &quot;^1.22.10&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.4.0&quot;,
      &quot;@wdio/allure-reporter&quot;: &quot;^7.3.1&quot;,
      &quot;@wdio/browserstack-service&quot;: &quot;^7.3.1&quot;,
      &quot;@wdio/junit-reporter&quot;: &quot;^7.3.1&quot;,
      &quot;babel-eslint&quot;: &quot;^10.1.0&quot;,
      &quot;babel-jest&quot;: &quot;^26.6.3&quot;,
      &quot;eslint&quot;: &quot;^7.23.0&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.22.1&quot;,
      &quot;forever&quot;: &quot;^3.0.4&quot;,
      &quot;jest&quot;: &quot;^26.6.3&quot;,
      &quot;npm-run-all&quot;: &quot;^4.1.5&quot;
    }  
  </code></pre>
  <p>Anybody has any idea what went wrong there?<br />
  Thanks!</p>