question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker image throwing unknown module exception

See original GitHub issue

Issue 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:closed
  • Created a year ago
  • Reactions:9
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
keshav-1835icommented, Jul 19, 2022

Started breaking in our CI pipeline too 😦

3reactions
ayumitamai97commented, Jul 23, 2022

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:

docker run --pull=always --rm -v $PWD:/app \
  ayumitamai97/graphql-inspector:3.2.0-modified graphql-inspector introspect your_schema.graphql

Just a temporary solution 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found