What are you trying to achieve?
Hard to debug the syntax error without stack trace.
What do you get instead?
Syntax error, with this is hard to find the syntax error in the project.
Provide console output if related. Use --verbose mode for more details.
codeceptjs run --steps --verbose
SyntaxError: Unexpected identifier
Error:
at Codecept.run (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/codecept.js:174:13)
at codecept.runBootstrap (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/command/run.js:39:16)
at module.exports (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/hooks.js:27:13)
at Codecept.runBootstrap (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/codecept.js:110:5)
at Command.module.exports (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/command/run.js:35:14)
at Command.listener (/usr/local/npm_packages/lib/node_modules/codeceptjs/node_modules/commander/index.js:315:8)
at Command.emit (events.js:198:13)
at Command.parseArgs (/usr/local/npm_packages/lib/node_modules/codeceptjs/node_modules/commander/index.js:651:12)
at Command.parse (/usr/local/npm_packages/lib/node_modules/codeceptjs/node_modules/commander/index.js:474:21)
at Object.<anonymous> (/usr/local/npm_packages/lib/node_modules/codeceptjs/bin/codecept.js:188:9)
Issue:
File: codeceptjs/lib/codecept.js.
line no: 174.
throw new Error(e);
Solution:
output.print(e.stack);
throw new Error(e);
Details
- CodeceptJS version: CodeceptJS v2.3.6
- NodeJS Version: v10.18.0
What are you trying to achieve?
Hard to debug the syntax error without stack trace.
What do you get instead?
Syntax error, with this is hard to find the syntax error in the project.
codeceptjs run --steps --verbose SyntaxError: Unexpected identifier Error: at Codecept.run (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/codecept.js:174:13) at codecept.runBootstrap (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/command/run.js:39:16) at module.exports (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/hooks.js:27:13) at Codecept.runBootstrap (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/codecept.js:110:5) at Command.module.exports (/usr/local/npm_packages/lib/node_modules/codeceptjs/lib/command/run.js:35:14) at Command.listener (/usr/local/npm_packages/lib/node_modules/codeceptjs/node_modules/commander/index.js:315:8) at Command.emit (events.js:198:13) at Command.parseArgs (/usr/local/npm_packages/lib/node_modules/codeceptjs/node_modules/commander/index.js:651:12) at Command.parse (/usr/local/npm_packages/lib/node_modules/codeceptjs/node_modules/commander/index.js:474:21) at Object.<anonymous> (/usr/local/npm_packages/lib/node_modules/codeceptjs/bin/codecept.js:188:9)Issue:
File: codeceptjs/lib/codecept.js.
line no: 174.
throw new Error(e);
Solution:
output.print(e.stack);
throw new Error(e);
Details