Closed belgattitude closed 2 years ago
This is fixed in the latest version I believe :)
@paales not yet.
Source of the bug was in cross-undici-fetch@0.3.1 on which @graphql-mesh/utils depends.
The graphql-mesh@^0.35 upgraded cross-undici-fetch to 0.4.3. That would fix it
Unfortunately @graphql-mesh/cache-inmemory-lru still depends on an older version of @graphl-mesh/utils.
I saw that you reworked the publishing in the upcoming release https://github.com/Urigo/graphql-mesh/pull/3981. Not sure if it will fix the issue. I tried to locate the @graphql-mesh/cache-inmemory-lru in the monorepo but I could not find it, otherwise I'd be happy to provide a P/R.
Thanks for your work
PS/
Output from yarn why cross-undici-fetch
ββ @graphql-mesh/utils@npm:0.34.4
β ββ cross-undici-fetch@npm:0.3.1 (via npm:0.3.1)
β
ββ @graphql-mesh/utils@npm:0.35.0
β ββ cross-undici-fetch@npm:0.4.3 (via npm:^0.4.0)
Output from yarn why @graphql-mesh/cache-inmemory-lru
ββ @your-org/api-gateway@workspace:packages/api-gateway [f054d]
β ββ @graphql-mesh/cache-inmemory-lru@npm:0.6.18 [4d233] (via npm:0.6.18 [4d233])
Output from yarn why @graphql-mesh/utils
ββ @graphql-mesh/cache-inmemory-lru@npm:0.6.18
β ββ @graphql-mesh/utils@npm:0.34.4 (via npm:0.34.4)
β
ββ @graphql-mesh/cache-localforage@npm:0.6.6
β ββ @graphql-mesh/utils@npm:0.35.0 (via npm:0.35.0)
β
ββ @graphql-mesh/cli@npm:0.71.0
β ββ @graphql-mesh/utils@npm:0.35.0 (via npm:0.35.0)
β
ββ @graphql-mesh/config@npm:0.37.0
β ββ @graphql-mesh/utils@npm:0.35.0 (via npm:0.35.0)
β
ββ @graphql-mesh/graphql@npm:0.26.0
β ββ @graphql-mesh/utils@npm:0.35.0 (via npm:0.35.0)
β
ββ @graphql-mesh/merger-bare@npm:0.13.48
β ββ @graphql-mesh/utils@npm:0.35.0 (via npm:0.35.0)
β
ββ @graphql-mesh/merger-stitching@npm:0.15.50
β ββ @graphql-mesh/utils@npm:0.35.0 (via npm:0.35.0)
β
ββ @graphql-mesh/new-openapi@npm:0.4.21
β ββ @graphql-mesh/utils@npm:0.35.0 (via npm:0.35.0)
β
ββ @graphql-mesh/runtime@npm:0.35.0
β ββ @graphql-mesh/utils@npm:0.35.0 (via npm:0.35.0)
β
ββ @graphql-mesh/store@npm:0.8.9
β ββ @graphql-mesh/utils@npm:0.35.0 (via npm:0.35.0)
β
...
We don't use @graphql-mesh/cache-inmemory-lru package anymore. It should no longer exist in your lock file.
Issue workflow progress
yarn generate
in the terminal.Describe the bug
Upgrading to latest versions of graphql-mesh packages leads to an error related to the cache-inmemory-lru. Seems a regression as it was passing on a previous iteration. I tested this on two repos.
Links: playwright on github action | github P/R. | .meshrc.yaml
To Reproduce
I can provide a reprod in the coming days. Otherwise cloning this P/R might help: https://github.com/belgattitude/nextjs-monorepo-example/pull/1800
Workaround
Simply remove the cache config from
yarnrc.yml
Environment: