Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lodash module not found #1072

Closed
emkajeej opened this issue Aug 28, 2023 · 2 comments
Closed

lodash module not found #1072

emkajeej opened this issue Aug 28, 2023 · 2 comments
Labels
bug Something isn't working dependencies Pull requests and issues related to dependencies external Problems or limitations traced back to other tools.
Milestone

Comments

@emkajeej
Copy link

Describe the bug
After a clean install of the 3.5.1 cli, gltf-transform command fails to run. This is likely to an incorrect import path used in @caporal/core/dist/index.mjs.

To Reproduce
Steps to reproduce the behavior:

  1. Uninstall gltf-transform/cli
  2. Globally install gltf-transform/cli @latest
  3. run any gltf-transform command

Expected behavior
gltf-transform runs without issues.

Actual behavior
gltf-transform returns an 'ERR_MODULE_NOT_FOUND' error

Versions:

  • Version: gltf-transform/cli 3.5.1
  • Environment: Node 18.16

Additional context
Did you mean to import lodash/kebabCase.js?
at new NodeError (node:internal/errors:387:5)
at finalizeResolution (node:internal/modules/esm/resolve:330:11)
at moduleResolve (node:internal/modules/esm/resolve:907:10)
at defaultResolve (node:internal/modules/esm/resolve:1115:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36) {
code: 'ERR_MODULE_NOT_FOUND'
}

@emkajeej emkajeej added the bug Something isn't working label Aug 28, 2023
@donmccurdy donmccurdy added dependencies Pull requests and issues related to dependencies external Problems or limitations traced back to other tools. labels Aug 28, 2023
@donmccurdy
Copy link
Owner

This seems to be an accidental breaking change in recent patch releases of @caporal/core. I've filed an issue upstream at:

In the meantime — I think you could globally install @caporal/[email protected] first, and then @gltf-transform/cli should be able to use that stable version.

@donmccurdy
Copy link
Owner

Issue has been fixed upstream — thanks for the bug report!

@donmccurdy donmccurdy modified the milestones: v3.6, v3.5 Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests and issues related to dependencies external Problems or limitations traced back to other tools.
Projects
None yet
Development

No branches or pull requests

2 participants