SyntaxError: Unexpected token =
at Module._compile (internal/modules/cjs/loader.js:721:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/var/lib/jenkins/workspace/Portal_UI_Automated_Tests_QA/node_modules/selenium-webdriver/lib/webdriver.js:40:20)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
Nightwatch Configuration
nightwatch v2.2.1
Nightwatch.js Version
2.2.1
NPM Version
6.9.0
Node Version
10.16.0
Yarn Version
No response
Browser
No response
Operating System
No response
Additional Information
The test runs successfully with v2.1.8 but fails with Nightwatch v2.2.x or higher. The error indicates an issue with selenium-webdriver/lib/virtual_authenticator.js which was updated in v2.2.1 per https://github.com/nightwatchjs/nightwatch/pull/3215
Description of the bug/issue
When I attempt to run a Nightwatch test from Jenkins I get an error
Steps to reproduce
No response
Sample test
No response
Command to run
No response
Verbose Output
/var/lib/jenkins/workspace/Portal_UI_Automated_Tests_QA/node_modules/selenium-webdriver/lib/virtual_authenticator.js:26 static Protocol = { ^
SyntaxError: Unexpected token = at Module._compile (internal/modules/cjs/loader.js:721:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/var/lib/jenkins/workspace/Portal_UI_Automated_Tests_QA/node_modules/selenium-webdriver/lib/webdriver.js:40:20)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
Nightwatch Configuration
nightwatch v2.2.1
Nightwatch.js Version
2.2.1
NPM Version
6.9.0
Node Version
10.16.0
Yarn Version
No response
Browser
No response
Operating System
No response
Additional Information
The test runs successfully with v2.1.8 but fails with Nightwatch v2.2.x or higher. The error indicates an issue with selenium-webdriver/lib/virtual_authenticator.js which was updated in v2.2.1 per https://github.com/nightwatchjs/nightwatch/pull/3215