You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/projects/be/node_modules/@loopback/cli/lib/version-helper.js:11
const latestVersion = require('latest-version');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /projects/be/node_modules/latest-version/index.js from /projects/be/node_modules/@loopback/cli/lib/version-helper.js not supported.
Instead change the require of index.js in /projects/be/node_modules/@loopback/cli/lib/version-helper.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/projects/be/node_modules/@loopback/cli/lib/version-helper.js:11:23)
at Object.<anonymous> (/projects/be/node_modules/@loopback/cli/lib/cli.js:14:25) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v20.18.3
Describe the bug
running lb4 cli causes errors, v6.2.2
Logs
Additional information
No response
Reproduction
npm install @loopback/cli; ./node_modules/.bin/lb4
The text was updated successfully, but these errors were encountered: