Docker image throwing unknown module exception
See original GitHub issueIssue workflow progress
Progress of the issue based on the Contributor Workflow
- 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox
Make sure to fork this template and run
yarn generate
in the terminal.Please make sure the Codegen and plugins version under
package.json
matches yours.
- 2. A failing test has been provided
- 3. A local solution has been provided
- 4. A pull request is pending review
Describe the bug
Running the following command with the latest docker image version
graphql-inspector diff https://app.launchnotes.io/graphql frontend/src/data/schema.graphql
Results in the following exception:
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'tslib'
Require stack:
- /usr/local/share/graphql-inspector/cli/dist/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:[27](https://gitlab.com/shiny-planes/the-goat/-/jobs/2729717131#L27))
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/usr/local/share/graphql-inspector/cli/dist/index.js:6:15)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:[32](https://gitlab.com/shiny-planes/the-goat/-/jobs/2729717131#L32))
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/usr/local/share/graphql-inspector/cli/dist/index.js' ]
}
To Reproduce Steps to reproduce the behavior:
graphql-inspector diff https://app.launchnotes.io/graphql frontend/src/data/schema.graphql
Expected behavior
I expect the diff to run successfully.
Environment:
- Latest docker image
Additional context
We have been running this in CI for about six months with no issue until the recent release pushed a new version to docker. Since we’re using the latest tag, builds after the release began to fail.
Issue Analytics
- State:
- Created a year ago
- Reactions:9
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Error on connection to running container · Issue #393 - GitHub
TypeInitializationException : The type initializer for 'Ssl' threw an exception. ... file routines:MODULE_RUN:unknown module name at Interop.
Read more >Cannot find module for a node js app running in a docker ...
If I do ls -al in the backend container, I get a full list of my backend app folder content, but it sounds...
Read more >Overview | Docker Documentation
This page contains information on: How to diagnose and troubleshoot Docker Desktop issues; Check the logs; Find workarounds for common problems ...
Read more >Broken Image for plugin Placeholder | Confluence Server and ...
Confluence should display a proper error message that a particular image is broken. Actual Results. The below exception is thrown in the atlassian.confluence....
Read more >Troubleshooting AWS CodeBuild
Possible cause: AWS CodeBuild does not have permission to pull the build image from your Amazon Elastic Container Registry (Amazon ECR).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Started breaking in our CI pipeline too 😦
Yet unofficial, I pushed a modified Docker image based on v3.2.0 (old and unbroken version).
Docker Hub: https://hub.docker.com/r/ayumitamai97/graphql-inspector/tags Changes: https://github.com/ayumitamai97/graphql-inspector/releases/tag/v3.2.0-modified
Example:
Just a temporary solution 😃