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

Module not found error in 2.2.4 #18

Closed
JohnJMills opened this issue Jun 18, 2024 · 4 comments
Closed

Module not found error in 2.2.4 #18

JohnJMills opened this issue Jun 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@JohnJMills
Copy link

Since the 2.2.4 update, I get a module not found error when trying to run sscli:

$ sscli --version

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'cosmiconfig' imported from /Users/johnmills/.nvm/versions/node/v18.15.0/lib/node_modules/static-sitemap-cli/src/cli.js
    at new NodeError (node:internal/errors:399:5)
    at packageResolve (node:internal/modules/esm/resolve:889:9)
    at moduleResolve (node:internal/modules/esm/resolve:938:20)
    at defaultResolve (node:internal/modules/esm/resolve:1153:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:838:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)
    at link (node:internal/modules/esm/module_job:76:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.15.0

Sometimes it works with different versions of Node, but there is no consistency. Reverting to the 2.2.3 version resolves the issue.

@zerodevx
Copy link
Owner

Thanks for the bug report. I think I know what's wrong - I'll cut a new release in a few minutes.

@zerodevx zerodevx added the bug Something isn't working label Jun 18, 2024
@zerodevx
Copy link
Owner

Should be fixed with v2.2.5.

@JohnJMills
Copy link
Author

Thank you! It's working on my local machine now.

@zerodevx
Copy link
Owner

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants