Skip to content

Commit

Permalink
fix(docker): Fix GraphiQL dependency in dockerfile (#679)
Browse files Browse the repository at this point in the history
GraphiQL produces error: Cannot use e "__Schema" from another module or realm. #677

Pin the version of graphql to < 0.12 in the package.json right before the npm build.
  • Loading branch information
angelosarto authored and benjie committed Feb 2, 2018
1 parent 8a7faee commit 959395e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ WORKDIR /postgraphql

COPY . /postgraphql

# Temporary pin of graphql to less than 0.12 in package.json
RUN sed -i 's/\"graphql\": \">=0.6 <0.13\"/\"graphql\": \">=0.6 <0.12\"/g' package.json

RUN npm install
RUN scripts/build
RUN npm pack
Expand Down

0 comments on commit 959395e

Please sign in to comment.