Giter Site home page Giter Site logo

Comments (5)

d4rekanguok avatar d4rekanguok commented on May 30, 2024 2

Hey @kaleabmelkie, thank you again for providing a reproduction!

I think it boils down to incompatible issue with the graphql version Gatsby uses — I'm not sure what we can do here until Gatsby upgrades to graphql 15 :(.

If you happen to use yarn, pinning Gatsby's graphql version to 14.6 seem to resolve the issue:

in package.json

{
  "resolutions": {
    "gatsby/graphql": "14.6.0"
  }
}

Though yarn resolution seems to be a little flaky. I fount it to work more consistently if I nuke node_modules and run yarn again after specifying new resolutions.

Hope it helps — I'll keep this issue open.

from gatsby-typescript.

d4rekanguok avatar d4rekanguok commented on May 30, 2024 1

Ooh very interesting, thank you for opening an issue! I'll try to fix this

from gatsby-typescript.

d4rekanguok avatar d4rekanguok commented on May 30, 2024 1

Thanks, that's solid! I've found this error:

failed We've encountered an error: Objects are not valid as
a React child
(found: GraphQLDocumentError: GraphQLDocumentError: Fragment
"GatsbyImageSharpFixed" is never used.). If you meant to render a collection of
children, use an array instead.

Will go from there

from gatsby-typescript.

d4rekanguok avatar d4rekanguok commented on May 30, 2024

Hey @kaleabmelkie, I was unable to reproduce this error. Do you have a sample project I can use? It seems like latest version of Gatsby has yet to use graphql 15 & when I force with yarn resolution, it just choked. I must have missing something.

Nevertheless I've upgraded all our dependencies to supports graphql 15, would you give it a try to see if it fixes the error? ([email protected])

from gatsby-typescript.

kaleabmelkie avatar kaleabmelkie commented on May 30, 2024

With v2.7.1 (and [email protected]) it logs a similar (but smaller) error on the console, but it actually launches the app and it works fine.

Here is a sample project:

https://codesandbox.io/s/frosty-neumann-uou9z

(Fork and restart it, if you want to see the error on console)

from gatsby-typescript.

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.