gatsby: Running Gatsby build gives Error: 856328897 TypeError: promise.finally is not a function
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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 25 (11 by maintainers)
Reverted to
2.20.28
and it fixed my issue as well.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.Me too thank you @timbiles!
As activity here has gone quiet, I’m going to assume that one of the fixes above or upgrades to either gatsby, yarn, or other libraries has everyone resolved and doing their best work! 😃
If anyone is still stuck with this same error, please re-open this issue with updated environment information and a minimum reproduction. 💜
Seeing the same issue running
gatsby develop
. Reinstalledgatsby-cli
globally, removed node_modules and reinstalled - and no improvement.Downgraded to
2.20.28
and the issue was resolved.I had just started a new project with
gatsby new restaurant-gatsby
and after that didgatsby develop
and got the same error.Output of
gatsby info --clipboard
is below