Open fahadsuhaib opened 1 year ago
I was about to report this same issue in a freshly created project.
I confirm it is still reproducible as of today with the following versions:
I am using node v18.16.1
.
The issue is fixed if I install yargs@14.2.2
as suggested above.
Describe the bug
Create a new lb app with node 16, Trying to run the default tests that come with lb app, using yarn test, it immediately throws this typescript error. This seems to be a mocha issue, but why did Loopback upgrade to latest mocha?
ERR_REQUIRE_ESM errors with Mocha tests.
Logs
No response
Additional information
If I downgrade
yargs
library to 14.2.2, this issue is not occurring.Reproduction
THIS ISSUE IS OBVIOUS