Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rsccc opened this issue Aug 27, 2019 · 6 comments

Comments

@rsccc
Copy link

rsccc commented Aug 27, 2019

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 rsccc changed the title graphql create my-app --boilerplate react-fullstack-basic is not working graphql create my-app --boilerplate react-fullstack-basic command is not working Aug 27, 2019
@haf
Copy link

haf commented Sep 10, 2019

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

@haf
Copy link

haf commented Sep 10, 2019

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
Copy link

#666 should take care of it.

@sespinosa
Copy link

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

@thom801
Copy link

thom801 commented Aug 12, 2020

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants