gatsby: Gatsby Develop crashes with slice error v2.15.24

Description

When trying to run dev the build fails after upgrading to Gatsby v2.15.24 from 2.15.22.

ERROR 
 
 UNHANDLED REJECTION Cannot read property 'slice' of undefined
 
 
 
   TypeError: Cannot read property 'slice' of undefined
   
   - index.js:138 
     [cco-gatsby-fe]/[gatsby]/dist/query/index.js:138:46
   
   - lodash.js:497 arrayAggregator
     [cco-gatsby-fe]/[gatsby]/[lodash]/lodash.js:497:34
   
   - lodash.js:4823 Function.groupBy
     [cco-gatsby-fe]/[gatsby]/[lodash]/lodash.js:4823:16
   
   - index.js:138 Object.groupQueryIds
     [cco-gatsby-fe]/[gatsby]/dist/query/index.js:138:21
   
   - develop.js:388 module.exports
     [cco-gatsby-fe]/[gatsby]/dist/commands/develop.js:388:17
   

Steps to reproduce

Run gatsby develop

Expected result

Complete dev build and serve. (For reference, I reverted to 2.15.22 and it worked perfectly)

Actual result

Error and build fail as shown above

Environment

Run gatsby info --clipboard in your project directory and paste the output here.


| => gatsby info --clipboard

  System:
    OS: macOS 10.14.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.4.0 - /usr/local/bin/node
    npm: 6.11.3 - /usr/local/bin/npm
  Languages:
    Python: 2.7.10 - /usr/bin/python
  Browsers:
    Chrome: 77.0.3865.90
    Safari: 13.0.1
  npmPackages:
    gatsby: ^2.15.24 => 2.15.24
    gatsby-cli: ^2.7.50 => 2.7.50
    gatsby-image: ^2.2.21 => 2.2.21
    gatsby-plugin-algolia: ^0.3.4 => 0.3.4
    gatsby-plugin-create-client-paths: ^2.1.9 => 2.1.9
    gatsby-plugin-eslint: ^2.0.5 => 2.0.5
    gatsby-plugin-manifest: ^2.2.18 => 2.2.18
    gatsby-plugin-material-ui: ^2.1.6 => 2.1.6
    gatsby-plugin-netlify: ^2.1.15 => 2.1.15
    gatsby-plugin-netlify-cache: ^1.2.0 => 1.2.0
    gatsby-plugin-offline: ^3.0.9 => 3.0.9
    gatsby-plugin-react-helmet: ^3.1.8 => 3.1.8
    gatsby-plugin-remove-serviceworker: ^1.0.0 => 1.0.0
    gatsby-plugin-sharp: ^2.2.25 => 2.2.25
    gatsby-plugin-styled-components: ^3.1.6 => 3.1.6
    gatsby-plugin-web-font-loader: ^1.0.4 => 1.0.4
    gatsby-source-drupal: ^3.2.31 => 3.2.31
    gatsby-source-filesystem: ^2.1.26 => 2.1.26
    gatsby-transformer-sharp: ^2.2.17 => 2.2.17
    gatsby-transformer-sqip: ^2.1.28 => 2.1.28

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

I think I see what’s the issue, will open PR with hot-fix shortly

Same here 👍

published gatsby@2.15.25 - please let me know if it fixes everyones issues and not just one I used for reproduction