Skip to content

Conversation

@dhmlau
Copy link
Member

@dhmlau dhmlau commented Jan 19, 2026

In the latest version of @loopback/cli, it uses camelcase-keys@10 which is pure ESM. It causes TypeError as below when running lb4 command.

% lb4 app
/Users/SOMEPATH/@loopback/cli/lib/cli.js:39
  const options = camelCaseKeys(opts, {exclude: ['--', /^\w$/, 'argv']});
                  ^

TypeError: camelCaseKeys is not a function
   ....
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
    at node:internal/main/run_main_module:28:49

This PR reverts the camelcase-keys version to 7.x.

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

Signed-off-by: dhmlau <dhmlau@ca.ibm.com>
@dhmlau dhmlau requested a review from raymondfeng as a code owner January 19, 2026 15:45
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21143521178

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 54.896%

Totals Coverage Status
Change from base Build 21124709533: 0.0%
Covered Lines: 9572
Relevant Lines: 12457

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants