Open YuryShkoda opened 1 year ago
Hi. Thanks for raising the issue. The syntax error you are getting with ??
is Nullish coalescing operator. It is supported in Node.js 18 but there is possibility that you are using an older Webpack, jest runner or babel version that is not supporting this syntax.
Hi @pi0,
Thanks for getting back to me.
The project doesn't use webpack, it is packed using tsc
(v5.1.6) command.
Jest version is almost the latest: jest v29.4.3
and babel-jest v29.4.3
.
Project configuration can be found here.
Environment
Node.js: v18.14.2 npm: v9.5.0 typescript: v5.1.6
Reproduction
@sasjs/utils
usingnpm run package:lib
script@sasjs/cli
@sasjs/utils
to@sasjs/cli
by runningnpm i ../utils/build/sasjs-utils-5.0.0.tgz && npm start
sasjs
comand (egsasjs help
)Describe the bug
Bumping
consola
fromv2
(we were using2.15.0
) tov3
(eg3.2.3
or any3.*
) resulting into a syntax error.Additional context
The main goal of bumping the version of
consola
, which was working great so far, is to be able to disable colors in logged messages. Related issue https://github.com/sasjs/cli/issues/1367.Thank you very much for your help in advance!
Logs
No response