Unexpected token '.' on bru run
I have checked the following:
- [X] I use the newest version of bruno.
- [X] I've searched existing issues and found nothing related to my issue.
Describe the bug
Hello,
After installing bru cli (1.14.0) with npm (10.6.0), I run the following commande "bru run".
And I've got the following error :
`(node:64892) UnhandledPromiseRejectionWarning: /usr/local/lib/node_modules/@usebruno/cli/src/commands/run.js:134 const requestHasTests = bruJson.request?.tests; ^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:1054:16)
at Module._compile (internal/modules/cjs/loader.js:1102:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at Object.require (internal/modules/cjs/helpers.js:72:18)
at /usr/local/lib/node_modules/@usebruno/cli/node_modules/require-directory/index.js:76:17
at Array.forEach (--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:64892) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
`
The command is run in the same folder than the bruno.json file at the root of my collection. I have at least one .bru file in the subfolders. In this .bru file, there are several tests and one assertion.
Do you have any idea of what could have going wrong there ?
Thanks.
.bru file to reproduce the bug
No response
Screenshots/Live demo link
Try to use tripple backticks to get a codeblock in markdown in your issue ticket above.
I've change this.
Hello,
Any idea for this issue ?
Hello,
Any idea for this issue ?
Your node version might be too old. What version are you using? Make sure it's version 18+
Thank you, that was just that.