Code Monkey home page Code Monkey logo

homepage-starters's Issues

Request to publish current code for gatsby-theme-contentful-blog

Intro

Request

gatsby-theme-contentful-blog: adding blog support as per shows error

9:54:47 AM: info [gatsby-theme-abstract-blog] creating pages
9:54:47 AM: error "gatsby-theme-abstract-blog" threw an error while running the createPages lifecycle:
9:54:47 AM: Interface field Image.gatsbyImageData expects type GatsbyImageData but ContentfulAsset.gatsbyImageData is type JSON.
9:54:47 AM:   140 |       }
9:54:47 AM:   141 |
9:54:47 AM: > 142 |   const result = await graphql(`
      |                        ^
  143 |     {
  144 |       posts: allBlogPost {
  145 |         nodes {
9:54:47 AM: 
9:54:47 AM:   Error: Interface field Image.gatsbyImageData expects type GatsbyImageData but   ContentfulAsset.gatsbyImageData is type JSON.
9:54:47 AM:   

gatsby-starter-contentful-homepage fails to build and run Can't resolve 'gatsby-script'

Preliminary Checks

Description

I'm unable to raise any issues for the gatsby-starter-contentful-homepage repo you own so I'm raising it here. Following the exact steps in the readme I'm unable to get it started locally.

Once I get to the yarn start command it always ends with:

Module not found: Error: Can't resolve 'gatsby-script' in '/Users/username/Documents/my-homepage/.cache'

I've tried multiple fresh setups, I've also tried running gatsby clean and then gatsby develop and I just get same results.

I can however create and run a gatsby instance fine with gatsby new and then gatsby develop so it's definitely some issue with the contentful template.

Reproduction Link

https://github.com/miketricking/weeb-schwarz

Steps to Reproduce

  1. Try to setup the project locally as per the readme docs

...

Expected Result

The site is running on localhost

Actual Result

It fails to build and run on localhost

Environment

System:
    OS: macOS 12.3.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.18.0 - /usr/local/bin/node
    Yarn: 1.22.15 - /usr/local/bin/yarn
    npm: 7.24.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 106.0.5249.119
    Firefox: 73.0
    Safari: 15.4
  npmPackages:
    gatsby: ^4.23.1 => 4.24.4 
    gatsby-plugin-image: ^2.23.1 => 2.24.0 
    gatsby-plugin-manifest: ^4.6.0 => 4.24.0 
    gatsby-plugin-react-helmet: ^5.5.0 => 5.24.0 
    gatsby-plugin-sharp: ^4.23.1 => 4.24.0 
    gatsby-plugin-vanilla-extract: ^2.0.1 => 2.0.1 
    gatsby-provision-contentful: ^0.0.3 => 0.0.3 
    gatsby-source-contentful: ^7.21.1 => 7.22.0 
    gatsby-source-filesystem: ^4.22.0 => 4.24.0 
    gatsby-transformer-sharp: ^4.23.1 => 4.24.0 
  npmGlobalPackages:
    gatsby-cli: 4.24.0

Config Flags

No response

Broken links and old information for Gatsby-Contentful

On both starter pages for Contenful, there are links and documentation how to set up Gatsby cloud, which is deprecated.

Contentfuls "new way" of previewing content is live-preview. They have a working example but it does not seem to work on any of the gatsby projects. Would be highly appreciated if this could be added to them.

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.