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 starter failed Building development bundle #25657

Closed
def-not-ys opened this issue Jul 9, 2020 · 11 comments
Closed

gatsby starter failed Building development bundle #25657

def-not-ys opened this issue Jul 9, 2020 · 11 comments
Assignees
Labels
topic: webpack/babel Webpack or babel type: bug An issue or pull request relating to a bug in Gatsby

Comments

@def-not-ys
Copy link

Description

I am using this gatsby-ghost-starter. I successfully installed the app, and ran yarn to installed all dependencies. But when I ran gatsby develop I kept getting this error:

 ERROR #98124  WEBPACK

Generating development JavaScript bundle failed

Can't resolve 'core-js/modules/es.array.flat' in <file path>

If you're trying to use a package make sure that 'core-js/modules/es.array.flat' is installed. If you're trying to use a local file make sure that the path is correct.

File: .cache\error-overlay-handler.js


 ERROR #98124  WEBPACK

Generating development JavaScript bundle failed

Can't resolve 'core-js/modules/es.array.unscopables.flat' in <file path>

If you're trying to use a package make sure that 'core-js/modules/es.array.unscopables.flat' is installed. If you're trying to use a local file make sure that the path is correct.

File: .cache\error-overlay-handler.js

failed Building development bundle - 3.868s

I tried adding the react tool tip mentioned in this post #25453 and still getting the same error.

Steps to reproduce

npm install -g gatsby-cli
gatsby new gatsby-starter-ghost https://github.com/TryGhost/gatsby-starter-ghost
yarn
gatsby develop
ERROR #98124  WEBPACK (error message above)

Expected result

Should develop successfully

Actual result

not able to complete building development bundle

failed Building development bundle

Environment

System:
    OS: Windows 10 10.0.18362
    CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz  
  Binaries:
    Node: 12.16.3 - C:\Program Files\nodejs\node.EXE       
    Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
  Languages:
    Python: 3.8.2
  Browsers:
    Edge: 44.18362.449.0
  npmPackages:
    gatsby: 2.23.20 => 2.23.20
    gatsby-awesome-pagination: 0.3.6 => 0.3.6
    gatsby-image: 2.4.12 => 2.4.12
    gatsby-plugin-advanced-sitemap: 1.5.5 => 1.5.5
    gatsby-plugin-catch-links: 2.3.10 => 2.3.10
    gatsby-plugin-feed: 2.5.10 => 2.5.10
    gatsby-plugin-force-trailing-slashes: 1.0.4 => 1.0.4   
    gatsby-plugin-manifest: 2.4.17 => 2.4.17
    gatsby-plugin-offline: 3.2.16 => 3.2.16
    gatsby-plugin-react-helmet: 3.3.9 => 3.3.9
    gatsby-plugin-sharp: 2.6.17 => 2.6.17
    gatsby-source-filesystem: 2.3.18 => 2.3.18
    gatsby-source-ghost: 4.0.5 => 4.0.5
    gatsby-transformer-sharp: 2.5.10 => 2.5.10
  npmGlobalPackages:
    gatsby-cli: 2.12.60
@def-not-ys def-not-ys added the type: bug An issue or pull request relating to a bug in Gatsby label Jul 9, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jul 9, 2020
@pieh pieh added topic: webpack/babel Webpack or babel and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jul 9, 2020
@mattfelten
Copy link

I'm getting this too with my project. I'm not seeing it locally though which is weird. But my Netlify build is giving me the same error.

@AndrejGajdos
Copy link
Contributor

I have the same issue from today.

@danielmacuare
Copy link

danielmacuare commented Jul 10, 2020

+1 Here. I'm having the same issue while doing the following:

gatsby new damt-blog https://github.com/TryGhost/gatsby-starter-ghost
gatsby develop

@andyhmltn
Copy link

Also seeing this locally on an existing gatsby installation

@andyhmltn
Copy link

I upgraded gatsby to 2.24.18 and this appears to be fixed

@AndrejGajdos
Copy link
Contributor

Thanks @andyhmltn. I don't see an error with that version.

@def-not-ys
Copy link
Author

@andyhmltn would you mind explaining how to upgrade gatsby? (I am new to web development). thanks

@andyhmltn
Copy link

andyhmltn commented Jul 10, 2020

@def-not-ys If you're using yarn:yarn upgrade gatsby@2.24.18 or if you're using npm: npm install gatsby@2.24.18 --save

Let me know if that doesn't work. I haven't tested as I already upgraded this morning :)

@def-not-ys
Copy link
Author

@andyhmltn Thanks! Yes upgrading gatsby fixed the error on building development.
I did not see the option of gatsby@2.24.18 so I upgraded it up gatsby@2.24.2.
however now I am getting a bunch of errors on GraphQL. but it successfully built the development bundle.
Upgrading seems to the fix to this issue. Thank you so much!
will close this issue now.

@andyhmltn
Copy link

@def-not-ys Great news 👍

@sunshine940326
Copy link

I have the same issue from today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: webpack/babel Webpack or babel type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

8 participants