GithubHelp home page GithubHelp logo

Comments (13)

seanogdev avatar seanogdev commented on June 28, 2024 4

Is there a workaround for this, @hjvedvik?

from gridsome-starter-blog.

hjvedvik avatar hjvedvik commented on June 28, 2024 2

I see. Gridsome creates the GraphQL schema based on fields it finds at startup, so that's probably why the coverImage isn't an image field sometimes. We are working on a solution to make Gridsome remember the schema instead of just looking up fields on nodes every time you start the development server, but it's not ready yet :)

from gridsome-starter-blog.

lauragift21 avatar lauragift21 commented on June 28, 2024 1

No I haven't yet. I'm hoping the fix get merged in soon enough.

from gridsome-starter-blog.

Xstoudi avatar Xstoudi commented on June 28, 2024 1

Is there an update about this issue ? How can I re-generate the GraphQL schem ?

from gridsome-starter-blog.

eleijonmarck avatar eleijonmarck commented on June 28, 2024 1

@Xstoudi @miralize Have you tried?

rm -rf node_modules
rm -rf .cache

from gridsome-starter-blog.

hjvedvik avatar hjvedvik commented on June 28, 2024

Does this happen while the development server is running or when you start up again after deleting a post?

from gridsome-starter-blog.

lauragift21 avatar lauragift21 commented on June 28, 2024

It happens when I delete the post and start up the server again.

from gridsome-starter-blog.

lauragift21 avatar lauragift21 commented on June 28, 2024

Alright, that makes sense. Looking forward to that fix.

from gridsome-starter-blog.

SamUndefined avatar SamUndefined commented on June 28, 2024

@lauragift21 Have you by chance found a decent workaround in the meantime?

Locally, I've been deleting those arguments, starting the server, and then re-adding them after reboot. On (Netlify) deploy, I just run re-run the build until it works 😬

from gridsome-starter-blog.

kendallroth avatar kendallroth commented on June 28, 2024

I've had this happen whenever I change the image path in frontmatter as follows:

# Builds and displays
cover_image: /images/test.jpg

# Builds but does not display image (doesn't exist?)
cover_image: ./images/test.jpg

# Doesn't build and displays this error (path saved by Netlify CMS)
cover_image: images/test.jpg

from gridsome-starter-blog.

dizid avatar dizid commented on June 28, 2024

Here is a plugin that might fix this error

from gridsome-starter-blog.

RehanSaeed avatar RehanSaeed commented on June 28, 2024

I'm getting this error on GitHub actions when doing a build, not develop. Is there any workaround?

from gridsome-starter-blog.

RehanSaeed avatar RehanSaeed commented on June 28, 2024

Did you find a resolution? I raised gridsome/gridsome#1031.

from gridsome-starter-blog.

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.