GithubHelp home page GithubHelp logo

Comments (4)

mskian avatar mskian commented on May 12, 2024
gatsby build

Output

success open and validate gatsby-configs — 0.666 s
success load plugins — 0.603 s
success onPreInit — 7.510 s
success delete html and css files from previous builds — 0.704 s
success initialize cache — 0.012 s
success copy gatsby files — 0.208 s
success onPreBootstrap — 0.009 s
success source and transform nodes — 4.622 s
success building schema — 1.150 s
success createPages — 0.283 s
success createPagesStatefully — 0.035 s
success onPreExtractQueries — 0.034 s
success update schema — 0.380 s
warning The GraphQL query in the non-page component "/home/mskian/Santhosh/san-status/src/templates/page.js" will not be run.
Exported queries are only executed for Page components. It's possible you're
trying to create pages in your gatsby-node.js and that's failing for some
reason.

If the failing component(s) is a regular component and not intended to be a page
component, you generally want to use a <StaticQuery> (https://gatsbyjs.org/docs/static-query)
instead of exporting a page query.

If you're more experienced with GraphQL, you can also export GraphQL
fragments from components and compose the fragments in the Page component
query and pass data down into the child component — http://graphql.org/learn/queries/#fragments
success extract queries from components — 0.298 s
success run graphql queries — 0.335 s — 16/16 47.98 queries/second
success write out page data — 0.003 s
success write out redirect data — 0.000 s
success onPostBootstrap — 0.001 s

info bootstrap finished - 39.646 s

success Building production JavaScript and CSS bundles — 10.875 s

error Building static HTML failed for path "/"

See our docs page on debugging HTML builds for help https://gatsby.app/debug-html


  WebpackError: TypeError: Parameter "url" must be a string, not object
  
  
  
  
  - static-entry.js:32 Object.urlResolve [as resolve]
    lib/.cache/static-entry.js:32:3
  
  - WebsiteMeta.js:15 WebsiteMeta
    lib/src/components/common/meta/WebsiteMeta.js:15:28
  
  - bootstrap:22 c
    lib/webpack/bootstrap:22:1
  
  - bootstrap:25 Sa
    lib/webpack/bootstrap:25:1
  
  - bootstrap:30 a.render
    lib/webpack/bootstrap:30:1
  
  - bootstrap:30 a.read
    lib/webpack/bootstrap:30:1
  
  - bootstrap:42 renderToString
    lib/webpack/bootstrap:42:1
  
  - static-entry.js:194 Module../.cache/static-entry.js.__webpack_exports__.default
    lib/.cache/static-entry.js:194:18
  
  - bootstrap:24 Promise
    lib/webpack/bootstrap:24:1
  
  
  - gatsby-browser-entry.js:1 Promise._resolveFromExecutor
    lib/.cache/gatsby-browser-entry.js:1:1
  
  - bootstrap:68 new Promise
    lib/webpack/bootstrap:68:1

from gatsby-starter-ghost.

mskian avatar mskian commented on May 12, 2024

seems an issue in the line

File - WebsiteMeta.js

const shareImage = url.resolve(config.siteUrl, image || data.feature_image || _.get(settings, `cover_image`, null))

I replace with the old one its build successfully

const shareImage = url.resolve(config.siteUrl, image || data.feature_image || config.shareImage)

from gatsby-starter-ghost.

mskian avatar mskian commented on May 12, 2024

I include config.shareImage in the code it build the site successfully

const shareImage = url.resolve(config.siteUrl, image || data.feature_image || _.get(settings, `cover_image`, null) || config.shareImage)

from gatsby-starter-ghost.

aileen avatar aileen commented on May 12, 2024

Thanks for the report! This issue occurs when no publication cover in Ghost is set. Fix coming now.

from gatsby-starter-ghost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.