Comments (2)
It was indeed a duplicate module issue; you can solve it with npx yarn-deduplicate && yarn
Here's what I did:
$ docker run --rm -it --entrypoint ash --network="host" graphile/postgraphile:v4.6.0
Unable to find image 'graphile/postgraphile:v4.6.0' locally
v4.6.0: Pulling from graphile/postgraphile
c9b1b535fdd9: Already exists
32eb17722c57: Pull complete
c6a4a31e8940: Pull complete
3f01d5292e29: Pull complete
ed293b993370: Pull complete
765134a27d4b: Pull complete
f96ef1a2885f: Pull complete
Digest: sha256:393a54d52a418d20b0d13d02a465972fff56f4225bf7502bfc26babf8af8fb65
Status: Downloaded newer image for graphile/postgraphile:v4.6.0
/postgraphile # find . -name 'graphql'
./node_modules/graphql
/postgraphile # yarn add @graphile/pro
yarn add v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @graphile/pro > @types/[email protected]: This is a stub types definition. graphql provides its own type definitions, so you do not need this installed.
[3/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "graphile-build@^4.5.0".
warning " > [email protected]" has unmet peer dependency "graphile-build-pg@^4.5.0".
[5/5] Building fresh packages...
success Saved lockfile.
warning Your current version of Yarn is out of date. The latest version is "1.22.4", while you're on "1.21.1".
info To upgrade, run the following command:
$ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
success Saved 3 new dependencies.
info Direct dependencies
└─ @graphile/[email protected]
info All dependencies
├─ @graphile/[email protected]
├─ @types/[email protected]
└─ [email protected]
Done in 6.57s.
/postgraphile # find . -name 'graphql'
./node_modules/@graphile/pro/node_modules/graphql
./node_modules/graphql
./node_modules/@types/graphql
./node_modules/@types/graphql/node_modules/graphql
^ Oh no - two versions of graphql!
/postgraphile # cat node_modules/graphql/package.json | grep version
"version": "14.5.8",
/postgraphile # cat ./node_modules/@graphile/pro/node_modules/graphql/package.json | grep version
"version": "14.7.0",
^ Two different versions
/postgraphile # npx yarn-deduplicate && yarn
npx: installed 4 in 1.778s
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "graphile-build@^4.5.0".
warning " > [email protected]" has unmet peer dependency "graphile-build-pg@^4.5.0".
[5/5] Building fresh packages...
Done in 1.78s.
/postgraphile # find . -name 'graphql'
./node_modules/graphql
./node_modules/@types/graphql
./node_modules/@types/graphql/node_modules/graphql
^ Yay, back to just the main version again (and some typescript bindings).
from issues.
Yes, works beautifully! Thanks a bunch
from issues.
Related Issues (8)
- Subscriptions relatedNode return null HOT 8
- TS definitions for `@graphile/supporter` HOT 3
- Allow specifying the cost limits per request HOT 3
- Introduce smart comments to allow hinting at the cost of an unlimited query of a table HOT 1
- peerDependency on postgraphile missing in @graphile/pro HOT 1
- Graphile Pro: overrideOptionsForRequest defaultPaginationCap is not taken into account HOT 4
- When inside of a resolver for a subscription, allow `selectGraphQLResultFromTable` to use the read only connection string HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from issues.