Closed machi1990 closed 4 years ago
This is because it looks for a .graphqlrc
file. We have removed that since server generation is completely runtime, however if you want to generate client documents you need a config file.
However, I believe work has begun to create an offix-cli (https://github.com/aerogear/offix/issues/525)
So the generate
command will be removed I think.
The error message I am seeing is
yarn graphback generate
error Command "graphback" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Oh. Well then you are right about I think it is because the templates are missing the graphback-cli package
. We should add them in.
Yep... Amazing catch!
After successful generating a new project using our cli, we have the next steps printed in console
However, when running the
yarn graphback generate
command it fails.I think it is because the templates are missing the
graphback-cli
packagehttps://github.com/aerogear/graphback/blob/master/templates/ts-apollo-mongodb-backend/package.json#L14
https://github.com/aerogear/graphback/blob/master/templates/ts-apollo-postgres-backend/package.json#L14
https://github.com/aerogear/graphback/blob/master/templates/ts-react-apollo-client/package.json#L16
/cc @wtrocki @craicoverflow