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

index.js set as main #501

Open
rsteube opened this issue Feb 2, 2021 · 2 comments
Open

index.js set as main #501

rsteube opened this issue Feb 2, 2021 · 2 comments

Comments

@rsteube
Copy link

rsteube commented Feb 2, 2021

index.js was removed in #437 but is still set as main: https://github.com/jsonresume/resume-cli/blob/master/package.json#L5

node:internal/modules/cjs/loader:352
      throw err;
      ^

Error: Cannot find module '/data/node_modules/resume-cli/index.js'. Please verify that the package.json has a valid "main" entry
    at tryPackage (node:internal/modules/cjs/loader:344:19)
    at Function.Module._findPath (node:internal/modules/cjs/loader:557:18)
    at resolveMainPath (node:internal/modules/run_main:16:25)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:70:24)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  path: '/data/node_modules/resume-cli/package.json',
  requestPath: '/data/node_modules/resume-cli'
}
@cshintov
Copy link

Met with the same issue!

@rsteube
Copy link
Author

rsteube commented May 19, 2021

AFAIR it wasn't too much of a deal in the end, i just needed to install/build it differently (different folder/command).
Not sure if it was a problem in the container or during a local test, so this might be unrelated but here is how i am using it now : https://github.com/rsteube/jsonresume-headless/blob/master/Dockerfile

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

No branches or pull requests

2 participants