Open rsccc opened 5 years ago
Me too. Should this be a high prio to fix?
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 I tried your solution but the generated project is not the one on this repo, doesn't have the "server" directory.
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.
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.
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