react-fullstack-graphql icon indicating copy to clipboard operation
react-fullstack-graphql copied to clipboard

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

Open rsccc opened this issue 6 years ago • 6 comments

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

rsccc avatar Aug 27 '19 14:08 rsccc

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

haf avatar Sep 10 '19 19:09 haf

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>)

haf avatar Sep 10 '19 19:09 haf

#666 should take care of it.

TheOmran avatar Sep 17 '19 22:09 TheOmran

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

sespinosa avatar Mar 31 '20 23:03 sespinosa

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.

thom801 avatar Aug 12 '20 17:08 thom801

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 [email protected]

And to download the templates write

graphql create <your-app-name>

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

Mohamad-Kamar avatar Dec 09 '21 11:12 Mohamad-Kamar