Questions tagged [gridsome]

Web development framework that generates static HTML files for hydration by Vue.js.

GridsomeVue.js-powered static site generator

184 questions
0
votes
1 answer

Gridsome: Error: Variable of required type "String!" was not provided

I am generating a list of pages that have been working fine, and I want to add a list of categories that can query objects based on their categories. For pages with nodes here is what I did in…
Samir Ahmane
  • 830
  • 7
  • 22
0
votes
0 answers

No 'Access-Control-Allow-Origin' header is present using Axios to post a comment

[ A CORS policy error ] [ Gridsome as front and Axios for HTTP requests ] [ WP-Graphql v1.6.7 ] [ WPGraphQL Cors installed ] [Access to XMLHttpRequest at ''https://my_wp_backend.com' from origin 'http://my_gridsome_front.com' has been blocked by…
Ali Seivani
  • 496
  • 3
  • 21
0
votes
1 answer

Random timeout on GET request with Axios

I have multiple sites buildt with static sites generator (gridsome, vue based).On build, they consume WP REST API data through Axios. Lately, my build would fail a lot because Axios requests get randomly timedout. On the WP side, each request made…
0
votes
2 answers

How to use isClient in Gridsome?

I am using FirebaseUI with Gridsome plugin and I am getting the error ReferenceError: window is not defined. This is due to SSR and FirebaseUI must be calling the window object which is only available on browsers. I've looked into Gridsome…
Samir Ahmane
  • 830
  • 7
  • 22
0
votes
1 answer

How to access the app object from a Vue single file component?

My end goal: I'm using a custom HTML element in a component template () and I'd like to register the element with Vue. The method given by that page for registering custom elements is through…
Nick S
  • 555
  • 4
  • 17
0
votes
1 answer

How to render Gridsome metadata (vue-meta) Server Side?

In Gridsome: Seems like what is in metaInfo gets generated after mount, which results in no link preview when scraped by facebook. The og:title, description and image are visible on client side. How to get it generate on build so it would be in…
Tadas Majeris
  • 361
  • 2
  • 4
  • 12
0
votes
1 answer

vue: V-input-file is not of type ‘HTMLFormElement’ error

on Vue adding selected file to FormData ends with error in both v-input-file and input type=‘file’. error massage: Failed to construct ‘FormData’: parameter 1 is not of type ‘HTMLFormElement’.