Created
April 15, 2020 10:48
-
-
Save danielclough/94026c9f78c3672b02ed15293e4e5768 to your computer and use it in GitHub Desktop.
@gatsbystorefront/gatsby-theme-storefront-shopify fails to build on Netlify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`Netlify Deply Log` | |
``` | |
error "gatsby-source-shopify" threw an error while running the sourceNodes lifecycle: | |
3:20:20 AM: Cannot read property 'includes' of undefined | |
3:20:20 AM: 40 | includeCollections = [_constants.SHOP, _constants.CONTENT] | |
3:20:20 AM: 41 | }) => { | |
3:20:20 AM: > 42 | const client = (0, _createClient.createClient)(shopName, accessToken, apiVersion); // Convenience function to namespace console messages. | |
3:20:20 AM: | ^ | |
3:20:20 AM: 43 | | |
3:20:20 AM: 44 | const formatMsg = msg => _chalk.default`\n{blue gatsby-source-shopify/${shopName}} ${msg}`; | |
3:20:20 AM: 45 | | |
3:20:20 AM: | |
3:20:20 AM: TypeError: Cannot read property 'includes' of undefined | |
3:20:20 AM: | |
3:20:20 AM: - create-client.js:14 createClient | |
3:20:20 AM: [repo]/[gatsby-source-shopify]/create-client.js:14:16 | |
3:20:20 AM: | |
3:20:20 AM: - gatsby-node.js:42 Object.sourceNodes | |
3:20:20 AM: [repo]/[gatsby-source-shopify]/gatsby-node.js:42:49 | |
3:20:20 AM: | |
3:20:20 AM: - api-runner-node.js:256 runAPI | |
3:20:20 AM: [repo]/[gatsby]/dist/utils/api-runner-node.js:256:37 | |
3:20:20 AM: | |
3:20:20 AM: - api-runner-node.js:375 resolve | |
3:20:20 AM: [repo]/[gatsby]/dist/utils/api-runner-node.js:375:15 | |
3:20:20 AM: | |
3:20:20 AM: - debuggability.js:384 Promise._execute | |
3:20:20 AM: [repo]/[bluebird]/js/release/debuggability.js:384:9 | |
3:20:20 AM: | |
3:20:20 AM: - promise.js:518 Promise._resolveFromExecutor | |
3:20:20 AM: [repo]/[bluebird]/js/release/promise.js:518:18 | |
3:20:20 AM: | |
3:20:20 AM: - promise.js:103 new Promise | |
3:20:20 AM: [repo]/[bluebird]/js/release/promise.js:103:10 | |
3:20:20 AM: | |
3:20:20 AM: - api-runner-node.js:374 Promise.mapSeries.plugin | |
3:20:20 AM: [repo]/[gatsby]/dist/utils/api-runner-node.js:374:12 | |
3:20:20 AM: | |
3:20:20 AM: - util.js:16 tryCatcher | |
3:20:20 AM: [repo]/[bluebird]/js/release/util.js:16:23 | |
3:20:20 AM: | |
3:20:20 AM: - reduce.js:166 Object.gotValue | |
3:20:20 AM: [repo]/[bluebird]/js/release/reduce.js:166:18 | |
3:20:20 AM: | |
3:20:20 AM: - reduce.js:155 Object.gotAccum | |
3:20:20 AM: [repo]/[bluebird]/js/release/reduce.js:155:25 | |
3:20:20 AM: | |
3:20:20 AM: - util.js:16 Object.tryCatcher | |
3:20:20 AM: [repo]/[bluebird]/js/release/util.js:16:23 | |
3:20:20 AM: | |
3:20:20 AM: - promise.js:547 Promise._settlePromiseFromHandler | |
3:20:20 AM: [repo]/[bluebird]/js/release/promise.js:547:31 | |
3:20:20 AM: | |
3:20:20 AM: - promise.js:604 Promise._settlePromise | |
3:20:20 AM: [repo]/[bluebird]/js/release/promise.js:604:18 | |
3:20:20 AM: | |
3:20:20 AM: - promise.js:649 Promise._settlePromise0 | |
3:20:20 AM: [repo]/[bluebird]/js/release/promise.js:649:10 | |
3:20:20 AM: | |
3:20:20 AM: - promise.js:729 Promise._settlePromises | |
3:20:20 AM: [repo]/[bluebird]/js/release/promise.js:729:18 | |
3:20:20 AM: | |
3:20:20 AM: | |
3:20:20 AM: not finished source and transform nodes - 0.125s | |
3:20:20 AM: Skipping functions preparation step: no functions directory set | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Builds fine on localhost.
Takes a long while though.