-
Notifications
You must be signed in to change notification settings - Fork 2
Invalid argument type #45
Comments
Could you share your |
I've got the same when I run: ERROR Cannot prepare tests due to an error. TypeError [ERR_INVALID_ARG_TYPE]: The "from" argument must be of type string. Received type undefined I'm using windows 10. |
Could you nail down which feature file is causing the problem and share it with me, @eugeneborisik ? |
When I install this package globally (using This error also appears when installing in any other folder separate from the tests (e.g. package installed at However, when I install the package locally to the tests ( |
Did you also install gherkin globally, @microhod? |
Hi Lukas, {code} TypeError [ERR_INVALID_ARG_TYPE]: The "from" argument must be of type string. Received type undefined Feature file and step files attached from the project (both are copied from examples) Thanks |
I a getting following error on executing 'gherkin-testcafe firefox tests/steps/sampletest2.js tests/steps/sampletest2.feature' command
I even tried reinstalling all node_modules as it is mentioned by @ampc in #28. But it didn't work.
Appreciate anyone's help on this
ERROR TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at assertPath (path.js:39:11) at Object.relative (path.js:497:5) at getDefinitionLineAndUri (C:\Users\mohamedh\Desktop\testcafe2\node_modules\cucumber\lib\support_code_library_builder\build_helpers.js:184:27) at buildStepDefinitionConfig (C:\Users\mohamedh\Desktop\testcafe2\node_modules\cucumber\lib\support_code_library_builder\build_helpers.js:124:7) at SupportCodeLibraryBuilder.defineStep (C:\Users\mohamedh\Desktop\testcafe2\node_modules\cucumber\lib\support_code_library_builder\index.js:51:79) at Object.<anonymous> (C:\Users\mohamedh\Desktop\testcafe2\tests\steps\sampletest2.js:7:1) at Module._compile (internal/modules/cjs/loader.js:688:30) at Module._compile (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\testcafe\node_modules\source-map-support\source-map-support.js:521:25) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Module.require (internal/modules/cjs/loader.js:636:17) at require (internal/modules/cjs/helpers.js:20:18) at stepFiles.forEach.stepFile (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\gherkin-testcafe\src\compiler.js:122:7) at Array.forEach (<anonymous>) at GherkinTestcafeCompiler._loadStepDefinitions (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\gherkin-testcafe\src\compiler.js:119:20) at GherkinTestcafeCompiler.getTests (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\gherkin-testcafe\src\compiler.js:61:10) at Bootstrapper._getTests (C:\Users\mohamedh\AppData\Roaming\npm\node_modules\testcafe\src\runner\bootstrapper.js:81:41) at process._tickCallback (internal/process/next_tick.js:68:7)
The text was updated successfully, but these errors were encountered: