We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7121a8 commit b278a60Copy full SHA for b278a60
packages/gatsby/package.json
@@ -124,6 +124,7 @@
124
"true-case-path": "^1.0.3",
125
"type-of": "^2.0.1",
126
"url-loader": "^1.0.1",
127
+ "util.promisify": "^1.0.0",
128
"uuid": "^3.1.0",
129
"v8-compile-cache": "^1.1.0",
130
"webpack": "~4.28.4",
packages/gatsby/src/bootstrap/index.js
@@ -24,6 +24,8 @@ const preferDefault = require(`./prefer-default`)
24
const nodeTracking = require(`../db/node-tracking`)
25
const withResolverContext = require(`../schema/context`)
26
require(`../db`).startAutosave()
27
+// Add `util.promisify` polyfill for old node versions
28
+require(`util.promisify/shim`)()
29
30
// Show stack trace on unhandled promises.
31
process.on(`unhandledRejection`, (reason, p) => {
0 commit comments