graphql-hive / graphql-hive/graphql-modules

GraphQL Modules issue with deps

Open
#2,243 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.3k
Forks
113
Avg merge
3h 36m
Merged PRs (30d)
1

Description

**Describe the bug**

Hi. I deleted by `yarn.lock` file and `node_modules` just to reinstall all dependencies afresh and I was able to do that but an issue occurred with GraphQL Modules. I started getting this error below (I am using Dependency Injection)

![image](https://user-images.githubusercontent.com/1165845/187489228-75b19972-21ed-40e9-9bde-a3e06cc52ebd.png)

And there is no change in the code or the environment when it was working and when it was not working - the only changes are in yarn.lock and thus the dependencies themselves (when I roll back to the old `yarn.lock` everything works). Can you help on why it breaks on upgrade?

**To Reproduce**
Steps to reproduce the behavior:

**Working yarn.lock file: ** https://gist.github.com/tvvignesh/cc043ae59c18fd3920fdeb9bb8b615a0#file-yarn-working-lock

**yarn.lock file with issue: ** https://gist.github.com/tvvignesh/cc043ae59c18fd3920fdeb9bb8b615a0#file-yarn-notworking-lock

**Expected behavior**

Expecting GraphQL modules to work even on dependency upgrades

**Environment:**

- OS: Ubuntu 22.04

**PS: ** I use yarn 2 for install

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.