graphql-boilerplates / react-fullstack-graphql

Starter projects for fullstack applications based on React & GraphQL.
1.44k stars 323 forks source link

Unknown argument: boilerplate #550

Open jonathanMor opened 5 years ago

jonathanMor commented 5 years ago

When running: graphql create my-app --boilerplate react-fullstack-basic

Getting this error:

Unknown argument: boilerplate

any idea how to solve that?

hankolsen commented 5 years ago

I have the same problem :(

hankolsen commented 5 years ago

@jonathanMor Just run graphql create my-app, you will get a list of available boilerplates to choose from automatically :)

eaco-andrew commented 5 years ago

The list isn't showing react-fullstack-advanced as an option

hankolsen commented 5 years ago

@eaco-andrew, I noticed that too and there is another issue regarding that

hankolsen commented 5 years ago

https://github.com/graphql-cli/graphql-cli/pull/384

erikAlon commented 5 years ago

Same issue but running graphql create my-app offers the list of boilerplates, specifically react-fullstack-basic as of today.

kiano0sh commented 5 years ago

I'm facing this problem too and also there's no react-fullstack-advanced option.

hyochan commented 5 years ago

@erikAlon is right. There is no --boilerplate today. The doc should be updated.

thidasapankaja commented 5 years ago

Is there a way to get this fixed ?

sonugk commented 5 years ago

@jonathanMor Just run graphql create my-app, you will get a list of available boilerplates to choose from automatically :)

This one worked for me

rolandpeelen commented 5 years ago

the react-fullstack-advanced isn't available though

Timonzimm commented 5 years ago

Did you guys manage to find a solution?

sonugk commented 5 years ago

the react-fullstack-advanced isn't available though

https://github.com/graphql-boilerplates/react-fullstack-graphql/issues/550#issuecomment-461904886

As mentioned by @jonathanMor "Just run graphql create my-app" Also upvote his comment so that everyone can see

sonugk commented 5 years ago

Did you guys manage to find a solution? https://github.com/graphql-boilerplates/react-fullstack-graphql/issues/550#issuecomment-461904886

As mentioned by @jonathanMor "Just run graphql create my-app" Also upvote his comment so that everyone can see

Timonzimm commented 5 years ago

As mentioned by @rolandpeelen, "the react-fullstack-advanced isn't available though".

pvijeh commented 4 years ago

i opened a PR to remove this flag from the documentation https://github.com/graphql-boilerplates/react-fullstack-graphql/pull/686

chris-hailstorm commented 4 years ago

I can't vouch for the current state of the react-fullstack-advanced boilerplate, but it's easy enough to enable that variant for the CLI tool. After an npm install of graphql-cli, just edit the boilerplate list in node_modules/graphql-cli/dist/cmds/create/boilerplates.js and add an entry in the same form as the ones for /minimal and /basic, then run graphql create.

Maybe the exclusion of the react-fullstack-advanced boilerplate was intentional because the boilerplate itself isn't ready; I can't tell. But the names and URLs are all hardwired in that file.