graphql-boilerplates / react-fullstack-graphql

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

graphql create my-app --boilerplate react-fullstack-basic command is not working #661

Open rsccc opened 5 years ago

rsccc commented 5 years ago

ERROR STACK ++++++++++++++++++++++++++++++++++++++++++++ graphql create [directory]

Bootstrap a new GraphQL project

Options: --dotenv Path to .env file [string] -p, --project Project name [string] --no-install Don't install project dependencies [boolean] [default: false] -h, --help Show help [boolean] -v, --version Show version number [boolean] Unknown argument: boilerplate

haf commented 5 years ago

Me too. Should this be a high prio to fix?

haf commented 5 years ago

Remove the --boilerplate and you can choose the template from this repo (it seems)

Then, if you pick advanced/fullstack/react/js you get this error when starting the client:

Failed to compile

./src/index.css (./node_modules/css-loader??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
BrowserslistError: Unknown browser kaios
    at Array.reduce (<anonymous>)
    at Array.some (<anonymous>)
    at Array.filter (<anonymous>)
    at new Promise (<anonymous>)
TheOmran commented 5 years ago

666 should take care of it.

sespinosa commented 4 years ago

@haf I tried your solution but the generated project is not the one on this repo, doesn't have the "server" directory.

thom801 commented 4 years ago

I'm experiencing this issue as well. When I run graphql create my-app --boilerplate react-fullstack-basic the command doesn't seem to do anything. From looking at the cli docs, graphql init is the correct command, but I was unable to load the template from this repo using the github URL.

Mohamad-Kamar commented 2 years ago

The npm install command now downloads version 4 of the repo. Version 4 deprecates the create command in favor with the command init, and deprecates the rest of the flags ( such as --boilerplate). Solution would either be to adapt to the new version, which is very different, or download a previous version of the package as follows:

npm install -g graphql-cli@3.0.14

And to download the templates write

graphql create <your-app-name>

And select the template that you'd like to have.