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

gitmoji -c throws ERR_MODULE_NOT_FOUND #1321

Closed
5 tasks done
enorfelt opened this issue Jul 1, 2024 · 4 comments
Closed
5 tasks done

gitmoji -c throws ERR_MODULE_NOT_FOUND #1321

enorfelt opened this issue Jul 1, 2024 · 4 comments

Comments

@enorfelt
Copy link

enorfelt commented Jul 1, 2024

Describe the bug

When issuing gitmoji -c bellow error is thrown:

node:internal/modules/esm/resolve:265
throw new ERR_MODULE_NOT_FOUND(
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\some.user\AppData\Roaming\nvm\v20.15.0\node_modules\gitmoji-cli\node_modules\inquirer\lib\prompts\base.js' imported from C:\Users\some.user\AppData\Roaming\nvm\v20.15.0\node_modules\gitmoji-cli\node_modules\inquirer-autocomplete-prompt\index.js
at finalizeResolution (node:internal/modules/esm/resolve:265:11)
at moduleResolve (node:internal/modules/esm/resolve:933:10)
at defaultResolve (node:internal/modules/esm/resolve:1157:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38)
at ModuleWrap. (node:internal/modules/esm/module_job:87:39)
at link (node:internal/modules/esm/module_job:86:36) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///C:/Users/some.user/AppData/Roaming/nvm/v20.15.0/node_modules/gitmoji-cli/node_modules/inquirer/lib/prompts/base.js'
}

Node.js v20.15.0

Reproduction

  1. Open up a windows terminal using PowerShell Core
  2. npm i -g gitmoji-cli
  3. Restared windows terminal
  4. do: gitmoji -c

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
    Memory: 12.32 GB / 31.72 GB
  Binaries:
    Node: 20.15.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (126.0.2592.81)
    Internet Explorer: 11.0.19041.4355

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating duplicates.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@segersniels
Copy link
Collaborator

segersniels commented Jul 1, 2024

Can reproduce, seems likely that a dependabot bump broke one of our packages. Will investigate.

EDIT: Seems like inquirer unified their monorepo setup and changed from a lib directory to src which is causing inquirer-autocomplete-prompt to fail since it has a peer dependency on an older version of inquirer. Package managers are bumping the version to 9.3.x due to us having ^9.2.23.

@segersniels
Copy link
Collaborator

segersniels commented Jul 1, 2024

I made a PR to limit to minor versions of inquirer for now @carloscuesta

#1322

EDIT: Merged, awaiting release.

@carloscuesta
Copy link
Owner

Released thanks everyone! ❤️

@enorfelt
Copy link
Author

enorfelt commented Jul 2, 2024

And it works! Thanks for the quick fix @segersniels and @carloscuesta

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants