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

gatsby-cli v2.12.22 breaks gatsby recipes #24198

Closed
RileyMShea opened this issue May 18, 2020 · 1 comment · Fixed by #24201
Closed

gatsby-cli v2.12.22 breaks gatsby recipes #24198

RileyMShea opened this issue May 18, 2020 · 1 comment · Fixed by #24201
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@RileyMShea
Copy link

Description

Describe the issue that you're seeing.
When using gatsby-cli@2.12.22 the gatsby recipes gives the error below:

/home/riley/.config/yarn/global/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53                                                                                                            
        throw ex;                                                                                                                                                                                                  
        ^                                                                                                                                                                                                          
                                                                                                                                                                                                                   
Error: Error: gatsby recipes needs to be called with a specific recipe                                                                                                                                             
    at /home/riley/.config/yarn/global/node_modules/gatsby-cli/lib/create-cli.js:308:15                                                                                                                            
    at Object.handler (/home/riley/.config/yarn/global/node_modules/gatsby-cli/lib/create-cli.js:35:19)                                                                                                            
    at Object.runCommand (/home/riley/.config/yarn/global/node_modules/yargs/lib/command.js:240:40)                                                                                                                
    at Object.parseArgs [as _parseArgs] (/home/riley/.config/yarn/global/node_modules/yargs/yargs.js:1154:41)                                                                                                      
    at Object.parse (/home/riley/.config/yarn/global/node_modules/yargs/yargs.js:627:25)                                                                                                                           
    at createCli (/home/riley/.config/yarn/global/node_modules/gatsby-cli/lib/create-cli.js:449:136)                                                                                                               
    at Object.<anonymous> (/home/riley/.config/yarn/global/node_modules/gatsby-cli/lib/index.js:153:26)                                                                                                            
    at Module._compile (internal/modules/cjs/loader.js:1133:30)                                                                                                                                                    
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)                                                                                                                                      
    at Module.load (internal/modules/cjs/loader.js:977:32)   

gatsby recipes emotion produces no output, no effect.

This only occurs in gatsby-cli@2.12.22 in gatsby-cli@2.12.21 the recipes command works as expected

Steps to reproduce

  • Perform a clean fresh global install of gatsby-cli@2.12.22
    yarn global remove gatsby-cli
    yarn global add gatsby-cli@2.12.22
  • create a new project with the default starter
    gatsby new my-project && cd my-project
  • run recipes command
    gatsby recipes or gatsby recipes emotion (or any other recipe)

Clear steps describing how to reproduce the issue. Please please please link to a demo project if possible, this makes your issue much easier to diagnose (seriously).

How to Make a Minimal Reproduction: https://www.gatsbyjs.org/contributing/how-to-make-a-reproducible-test-case/

Expected result

What should happen?

The gatsby recipes command should provide a list of recipes or at the very least allow specific recipes to be installed

Actual result

What happened.
*gatsby recipes gave an error saying to use a specific recipe

  • a specific recipe had no effect

Environment

yarn 1.22.4
Ubuntu x86x64 19.10
NodeJS 12.16.3 LTS

Run gatsby info --clipboard in your project directory and paste the output here.
System:
OS: Linux 5.3 Ubuntu 19.10 (Eoan Ermine)
CPU: (16) x64 AMD Ryzen 7 1700 Eight-Core Processor
Shell: 5.7.1 - /usr/bin/zsh
Binaries:
Node: 12.16.3 - /usr/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Languages:
Python: 2.7.17 - /usr/bin/python
Browsers:
Chrome: 81.0.4044.138
Firefox: 77.0b6
npmPackages:
gatsby: ^2.21.35 => 2.21.35
gatsby-image: ^2.4.4 => 2.4.4
gatsby-plugin-manifest: ^2.4.4 => 2.4.4
gatsby-plugin-offline: ^3.2.2 => 3.2.2
gatsby-plugin-react-helmet: ^3.3.1 => 3.3.1
gatsby-plugin-sharp: ^2.6.3 => 2.6.3
gatsby-source-filesystem: ^2.3.3 => 2.3.3
gatsby-transformer-sharp: ^2.5.2 => 2.5.2

@RileyMShea RileyMShea added the type: bug An issue or pull request relating to a bug in Gatsby label May 18, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 18, 2020
@blainekasten
Copy link
Contributor

@RileyMShea Thanks for reporting! Looks like we made a mistake in a recent typescript conversion #23650

I'll push up a hotfix here soon

@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants