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

Docker image: "Error: Cannot find module '../../package.json'" #401

Open
walles opened this issue Nov 28, 2022 · 1 comment · May be fixed by #404
Open

Docker image: "Error: Cannot find module '../../package.json'" #401

walles opened this issue Nov 28, 2022 · 1 comment · May be fixed by #404
Assignees

Comments

@walles
Copy link

walles commented Nov 28, 2022

Hello!

I can't get the Docker image to work.

Am I doing something wrong here, or is the Docker image broken?

~ $ docker run -it 'lxlu/openapi-cop:v1.3.2'
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '../../package.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/openapi-cop-docker/src/cli.js:13:20)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
~ [1]$
@LexLuengas LexLuengas self-assigned this Dec 9, 2022
@LexLuengas
Copy link
Collaborator

Yes, it unfortunately is. Shame our CI did not catch this. I will have a look.

LexLuengas added a commit that referenced this issue Dec 9, 2022
@LexLuengas LexLuengas linked a pull request Dec 9, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants