I get the following error when I try to graphcool ...
# prisma-whats-new
d
I get the following error when I try to graphcool deploy using the basic graphql starter project.
graphcool.yml should have required property 'stage'. missingProperty: stage
graphcool@1.0.0-beta2.1.1, graphql-cli@2.2.4, My graphcool.yml looks the same as the example here: https://github.com/graphql-boilerplates/node-graphql-server/blob/master/basic/graphcool.yml
h
are you deploying locally? if so can you try it in the shared cluster?
j
Hey @dardub I’m actually getting the same error (with a fresh install). I was able to work around it by adding the following line to the graphcool.yml file
stage: dev
….after I added that line I was able to run:
graphcool deploy
- OR -
graphcool deploy -s anotherdevstagename
(to change the target stage)
d
Thanks JR. I figured it would be something like that, but just wondering why the examples don't include it.
j
So… this appears to be a double edge sword because
graphcool deploy
complains if
stage: dev
isn’t included in the file. However,
yarn start
won’t launch unless you then remove that line from the file hahahaha. Here’s the error I get: Server is running on http://localhost:4000 (node:88029) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: [ERROR] in /Users/allanleonardjr/workspace/my-app/node-basic/graphcool.yml: graphcool.yml should NOT have additional properties. additionalProperty: stage (node:88029) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@nilan can you give us some insight?
n
@dardub @Kay V @JR Leonard I can't reproduce this, here are my steps:
Copy code
npm install -g graphcool@beta
npm install -g graphql-cli
graphql create my-app --boilerplate node-basic
cd my-app
graphcool deploy
Please create a bug report with more information on reproduction here: https://github.com/graphql-boilerplates/node-graphql-server 🙂
ok I could find the problem and created a bug report here: https://github.com/graphcool/framework/issues/1482 please subscribe to issue to get notified when it's fixed 🙂
it's now fixed 🙂
npm install -g graphcool@beta
👍 2
j
Thanks, I just confirmed that it’s fixed now.