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

Cannot run CLI - Error:'MODULE_NOT_FOUND' #155

Closed
martinhaintz opened this issue Aug 7, 2023 · 2 comments · Fixed by #156
Closed

Cannot run CLI - Error:'MODULE_NOT_FOUND' #155

martinhaintz opened this issue Aug 7, 2023 · 2 comments · Fixed by #156
Labels
bug Something isn't working

Comments

@martinhaintz
Copy link

Describe the bug
Hi,

I tried to run the latest version (v1.10.0) and receive the following error:
`./dcli-linux -h
pkg/prelude/bootstrap.js:1872
throw error;
^

Error: Cannot find module '/snapshot/dashlane-cli/node_modules/@json2csv/plainjs/dist/cjs/index.js'

  1. If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:960:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:953:15)
    at resolveExports (node:internal/modules/cjs/loader:482:14)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function._resolveFilename (pkg/prelude/bootstrap.js:1951:46)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at Module.require (pkg/prelude/bootstrap.js:1851:31)
    at require (node:internal/modules/cjs/helpers:102:18) {
    code: 'MODULE_NOT_FOUND',
    path: '/snapshot/dashlane-cli/node_modules/@json2csv/plainjs/package.json',
    pkg: true
    }`

To Reproduce
This happens in Windows and Linux with version v1.10.0.
In both cases i tried to run the "-h" command.
"dcli-win-x64.exe -h" with the prebuild from Github and for Linux with the yarn build I did on my own and then run "./dcli-linux -h"

Expected behavior
Running the "-h" command and returning the menu options.

Environment (please complete the following information):

  • OS: Windows11 and Linux Docker Image:"node:16.20.1"
  • Version v1.10.0
@martinhaintz martinhaintz added the bug Something isn't working label Aug 7, 2023
@martinhaintz martinhaintz changed the title Cannot run CLLI - Error:'MODULE_NOT_FOUND' Cannot run CLI - Error:'MODULE_NOT_FOUND' Aug 7, 2023
@Mikescops
Copy link
Member

Hey,

Thanks for reporting, indeed it seems that the builds produced are not working.
I'm having a look asap.

@Mikescops
Copy link
Member

Should be fix in the next release 👍

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

Successfully merging a pull request may close this issue.

2 participants