Comments (4)
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 8.x...
Downloading and installing node 8.11.4...
Using default npm version: 5.6.0
-----> Restoring cache
Skipping cache restore (not-found)
-----> Building dependencies
Installing node modules (package.json + package-lock)
> [email protected] install /tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.6.1/libvips-8.6.1-linux-x64.tar.gz
> [email protected] postinstall /tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/cwebp-bin
> node lib/install.js
✔ cwebp pre-build test passed successfully
> [email protected] postinstall /tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/pngquant-bin
> node lib/install.js
✔ pngquant pre-build test passed successfully
added 1812 packages in 34.064s
Running heroku-postbuild
> [email protected] heroku-postbuild /tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082
> gatsby build
success delete html and css files from previous builds — 0.046 s
success open and validate gatsby-config — 0.008 s
success copy gatsby files — 0.023 s
success onPreBootstrap — 0.391 s
Starting to fetch data from Contentful
Fetching default locale
default local is : en-US
contentTypes fetched 3
Updated entries 9
Deleted entries 0
Updated assets 11
Deleted assets 0
Fetch Contentful data: 90.501ms
success source and transform nodes — 0.173 s
success building schema — 0.344 s
success createLayouts — 0.035 s
[ { GraphQLError: Cannot query field "allContentfulBlogPost" on type "RootQueryType". Did you mean "allContentfulProduct", "allContentfulCategory", "allContentfulBrand", "allContentfulAsset", or "allContentfulContentType"?
at Object.Field (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/graphql/validation/rules/FieldsOnCorrectType.js:65:31)
at Object.enter (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/graphql/language/visitor.js:295:29)
at Object.enter (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/graphql/language/visitor.js:337:25)
at visit (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/graphql/language/visitor.js:227:26)
error gatsby-node.js returned an error
at visitUsingRules (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/graphql/validation/validate.js:75:22)
at validate (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/graphql/validation/validate.js:60:10)
at /tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/graphql/graphql.js:69:51
at Promise._execute (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/bluebird/js/release/debuggability.js:303:9)
at Promise._resolveFromExecutor (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/bluebird/js/release/promise.js:483:18)
at new Promise (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/bluebird/js/release/promise.js:79:10)
at graphqlImpl (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/graphql/graphql.js:59:10)
at graphql (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/graphql/graphql.js:48:227)
at graphqlRunner (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/gatsby/dist/bootstrap/index.js:368:22)
at Promise (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/gatsby-node.js:10:7)
at Promise._execute (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/bluebird/js/release/debuggability.js:303:9)
at Promise._resolveFromExecutor (/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/node_modules/bluebird/js/release/promise.js:483:18)
message: 'Cannot query field "allContentfulBlogPost" on type "RootQueryType". Did you mean "allContentfulProduct", "allContentfulCategory", "allContentfulBrand", "allContentfulAsset", or "allContentfulContentType"?',
locations: [ [Object] ],
path: undefined } ]
TypeError: Cannot read property 'allContentfulBlogPost' of undefined
- gatsby-node.js:29 graphql.then.result
/tmp/build_12c4d7da02cc9ec83a76f47ea0ccd082/gatsby-node.js:29:35
- util.js:16 tryCatcher
[build_12c4d7da02cc9ec83a76f47ea0ccd082]/[bluebird]/js/release/util.js:16:23
- promise.js:512 Promise._settlePromiseFromHandler
[build_12c4d7da02cc9ec83a76f47ea0ccd082]/[bluebird]/js/release/promise.js:51 2:31
- promise.js:569 Promise._settlePromise
[build_12c4d7da02cc9ec83a76f47ea0ccd082]/[bluebird]/js/release/promise.js:56 9:18
- promise.js:606 Promise._settlePromiseCtx
[build_12c4d7da02cc9ec83a76f47ea0ccd082]/[bluebird]/js/release/promise.js:60 6:10
- async.js:138 Async._drainQueue
[build_12c4d7da02cc9ec83a76f47ea0ccd082]/[bluebird]/js/release/async.js:138: 12
- async.js:143 Async._drainQueues
[build_12c4d7da02cc9ec83a76f47ea0ccd082]/[bluebird]/js/release/async.js:143: 10
- async.js:17 Immediate.Async.drainQueues
[build_12c4d7da02cc9ec83a76f47ea0ccd082]/[bluebird]/js/release/async.js:17:1 4
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] heroku-postbuild: gatsby build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.WpPHl/_logs/2018-09-01T08_12_47_020Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
from starter-gatsby-blog.
I'm getting the same error during circleCI build
from starter-gatsby-blog.
Hey Folks,
This example is meant to work with specific content types
message: 'Cannot query field "allContentfulBlogPost" on type "RootQueryType". Did you mean "allContentfulProduct", "allContentfulCategory", "allContentfulBrand", "allContentfulAsset", or "allContentfulContentType"?',
You are querying allContentfulBlogPost
which it does not exist, the only possible cases based on your data are "allContentfulProduct", "allContentfulCategory", "allContentfulBrand", "allContentfulAsset", or "allContentfulContentType"
from starter-gatsby-blog.
Makes sense, sorta confusing that the default template is set up this way.
from starter-gatsby-blog.
Related Issues (20)
- Instant fail: ERROR #85910 Multiple "root" queries HOT 2
- npm install EINTEGRITY fails with yargs-parser HOT 2
- Starter won't build locally HOT 1
- Install script issues
- The wrong Contentful access token is being set in the Heroku onboarding walkthrough.
- Setting CONTENTFUL_HOST triggers access error
- setup.js config delivery access token has incorrect env var name HOT 1
- Can't upload images in Post Body HOT 8
- Load images locally and not through CDN HOT 4
- README.md and hello.js reference contentful.json
- 30 vulnerabilities found 7 Moderate | 23 High HOT 2
- 专业接收各种验证码Telegram HOT 1
- 抓取云端数据 HOT 1
- <?php HOT 1
- Cannot query field "references" on type "ContentfulBlogPostBody" HOT 1
- Incorrect lockfile and Node version
- adding defer: true in gatsby-node.js (DSG) throws Built Rendering Engines failed error
- Can we please add the supported node version(s) somewhere?
- Color of GatsbyContentfulFluid_tracedSVG fill
- Possibility of gatsby-image traced SVG with WebP?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter-gatsby-blog.