I recently started working on protractor using cucumber framework. I created my first sample test of my own and got the below error
[launcher] Running 1 instances of WebDriver [launcher] Error: TypeError: Cannot read property 'length' of undefined at Function.Configuration (/usr/local/lib/node_modules/cucumber/lib/cucumber/cli/configuration.js:8:11) at /usr/local/lib/node_modules/protractor/lib/frameworks/cucumber.js:148:39 at Function.promise (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:650:9) at /usr/local/lib/node_modules/protractor/lib/frameworks/cucumber.js:147:14 at _fulfilled (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:797:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:826:30) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:759:13) at /usr/local/lib/node_modules/protractor/node_modules/q/q.js:525:49 at flush (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:108:17) at doNTCallback0 (node.js:417:9) [launcher] Process exited with error code 100
I re-installed cucumber but still I get the error. Can someone help me on how to fix this issue?
.length
on an undefined variable. Thanks – Girish Sortur