question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running Gatsby build gives Error: 856328897 TypeError: promise.finally is not a function

See original GitHub issue

Description

When I run gatsby build or npm install I get the error Error: 856328897 TypeError: promise.finally is not a function

Steps to reproduce

I was getting missing images when deploying to netlify so I cleaned my local install then started getting these errors when I runnpm install or gatsby build - https://github.com/payello/suggestions-2020 this is my repo.

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

Expected result

What should happen? The files should build as usual

Actual result

What happened.

Environment

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

System: OS: macOS 10.15.4 CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz Shell: 3.2.57 - /bin/bash Binaries: Node: 12.13.0 - /usr/local/bin/node Yarn: 1.21.1 - /usr/local/bin/yarn npm: 6.12.0 - /usr/local/bin/npm Languages: Python: 2.7.12 - /Library/Frameworks/Python.framework/Versions/2.7/bin/python Browsers: Chrome: 81.0.4044.122 Firefox: 75.0 Safari: 13.1 npmPackages: gatsby: ^2.19.7 => 2.21.0 gatsby-image: ^2.2.39 => 2.4.0 gatsby-plugin-manifest: ^2.2.39 => 2.4.0 gatsby-plugin-offline: ^3.0.32 => 3.2.0 gatsby-plugin-react-helmet: ^3.1.21 => 3.3.0 gatsby-plugin-sharp: ^2.4.3 => 2.6.0 gatsby-plugin-styled-components: ^3.2.1 => 3.3.0 gatsby-source-contentful: ^2.2.7 => 2.3.0 gatsby-source-filesystem: ^2.1.46 => 2.3.0 gatsby-transformer-sharp: ^2.3.13 => 2.5.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
juwanpettycommented, Apr 28, 2020

Reverted to 2.20.28 and it fixed my issue as well.

4reactions
timbilescommented, Apr 28, 2020

I ran into the same issue and had to revert my gatsby package to 2.20.28. Everything works as expected for me with that version. There was a ‘promise.finally’ added to 'packages/gatsby/src/query/query-runner.js` in version 2.20.29 (4-22). I believe that was the issue for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gatsby build failed with promise.finally is not a function
Finally, I got resolved by downgrading my gatsby version from 2.23.22 to 2.20.28. My current gatsby info shows below information
Read more >
Troubleshooting Common Errors - Gatsby
Error : ReferenceError: window is not defined when running gatsby build; Build problems from Field 'browser' doesn't contain a valid alias configuration ...
Read more >
'gatsby build' fails on run static queries with 'TypeError - Reddit
'gatsby build' fails on run static queries with 'TypeError: promise.finally is not a function'. Hey everyone! Pretty new to gatsby here and ...
Read more >
Install Gatsby.js on Windows | Microsoft Learn
A guide to help you install the Gatsby.js web framework and get up and running on Windows. Gatsby.js is a static site generator...
Read more >
Gatsby - the window is not defined error, what and how to fix it?
Gatsby is one of the most popular Static Site Generators available to create pre-built markups for Jamstack apps.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found