Comments (9)
Until version 19 we can install it, after that all versions hangs.
from graphql-faker.
The only way how i run the version 2.0.0 in docker is build it self in my Dockerfile by this command.
WORKDIR /workdir
EXPOSE 9002
ENV NODE_OPTIONS=--openssl-legacy-provider
RUN git clone https://github.com/graphql-kit/graphql-faker.git && \
cd graphql-faker && npm i && npm run build
ENTRYPOINT ["node", "/workdir/graphql-faker/dist/index.js"]
I run it on ubuntu with node 20 with npm 9 and the prerequisite is to have git installed inside the container..
it could still be combed and moved to the global, but for my needs it seemed unnecessary..
it's slow during the build, but I didn't come up with anything better after a whole day of research.. hopefully it will help someone..
from graphql-faker.
I have the same problem, did anyone find a solution?
from graphql-faker.
I installed using docker...., but still the standard install should work on Mac.
from graphql-faker.
I managed to install the package through yarn when it's in a package.json
file (I haven't tried a global install). But the module ends up empty in node_nodules
:
The dist
directory with the built files is missing. It looks like the 2.0.0 release didn't go as intended @IvanGoncharov
from graphql-faker.
Still facing the same issue. Any solution to this?
from graphql-faker.
Even if installed via dependencies, v2.0.0 still does not work.
from graphql-faker.
I just hit this issue with the following Dockerfile:
FROM node:18-alpine
RUN npm install -g --verbose graphql-faker
which after a couple seconds stopped dead in its tracks (here's ~2 minutes after it got stuck):
$ docker build . -t test
[+] Building 132.9s (4/5) docker:default
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 100B 0.0s
=> [internal] load metadata for docker.io/library/node:18-alpine 0.8s
=> CACHED [1/2] FROM docker.io/library/node:18-alpine@sha256:b1a0356f7d6b86c958a06949d3db3f7fb27f95f627aa6157cb98bc65c801efa2 0.0s
=> => resolve docker.io/library/node:18-alpine@sha256:b1a0356f7d6b86c958a06949d3db3f7fb27f95f627aa6157cb98bc65c801efa2 0.0s
=> [2/2] RUN npm install -g --verbose graphql-faker 131.9s
=> => # npm http fetch GET 200 https://registry.npmjs.org/@types%2fjss 692ms (cache miss)
=> => # npm http fetch GET 200 https://registry.npmjs.org/@material-ui%2fsystem 790ms (cache miss)
=> => # npm http fetch GET 200 https://registry.npmjs.org/good-listener 824ms (cache miss)
=> => # npm http fetch GET 200 https://registry.npmjs.org/@f%2fraf 875ms (cache miss)
=> => # npm http fetch GET 200 https://registry.npmjs.org/@f%2ftween 892ms (cache miss)
=> => # npm http fetch GET 200 https://registry.npmjs.org/@f%2felapsed-time 908ms (cache miss)
I commented out the RUN line in the above Dockerfile, then ran a shell to get the node and npm versions:
$ docker run --rm -it --entrypoint sh test
/ # npm --version
10.2.3
/ # node --version
v18.19.0
If it matters, my host is Windows 10 Pro (22H2, v19045.3930) running Docker Desktop v4.26.1.
from graphql-faker.
Related Issues (20)
- @fake directive doesn't handle datatype values like boolean or array
- CLI command to generate a valid graphQl schema from the faker one HOT 4
- Fix deprecation Warning: faker.random
- faking graphql api using gaphql faker does not seem to query fields by id
- How to use a custom endpoint for fake service
- Faking file uploads/downloads
- Request for ARM docker image
- Allow to override existing schema with GraphQL-faker
- How to fake simple number with a static prefix?
- Interfaces implements Interface HOT 1
- Stuck at "loading" when running graphql-faker, is there a way to see a more detailed log? HOT 1
- Randomized fragment does not trigger new request
- Can we auto-fake without having to specify the faking it in the sdl file ?
- Unknown directive "specifiedBy" HOT 1
- npm package resolution hanging forever HOT 4
- proxy and SDL
- `@deprecated` directive not supported for input field HOT 3
- support for interface implementing interfaces
- Any alternatives to this package? HOT 2
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 graphql-faker.