r/Gridsome • • Jun 16 '21

Gridsome is it going to die?

17 Upvotes

I notice that Gridsome is not updated and maintained as Nuxtjs, is it going to die?
Do you have interesting news for the near future?


r/Gridsome • • Oct 24 '20

I wrote a little guide to setting up Gridsome with a markdown blog (supporting tag pages)

Thumbnail webdevetc.com
6 Upvotes

r/Gridsome • • May 21 '21

Building a Learning Platform with Strapi CMS and Gridsome

Thumbnail
strapi.io
5 Upvotes

r/Gridsome • • Nov 30 '20

Build an Event App with Vue.js, Gridsome & Strapi.js

Thumbnail
youtube.com
5 Upvotes

r/Gridsome • • Sep 14 '20

Gridsome + Wordpress - Do you use it? Is it worthwhile?

5 Upvotes

Hi all,

I've been experimenting with Gridsome, and the 'Gridsome WordPress and Bootstrap starter'

To start, I noticed Gridsome has an issue where 'gridsome develop' does not show errors.

I struggled to identify why pages from WP weren't working, until I ran 'gridsome build' which throws the error, which helped me fixed it (if anyone has that issue, feel free to ask).

I previously tried Gatsby. Much easier to understand, much better documentation, much better templating approach. Bbut I do not seem to get on with the way React works. Vue seems a better for for me.

The point of this post is, I am not looking to master this. As soon as it's set up, I want to pass the project on to a developer with more of these specific skills. However, I do want to understand the basics though (I'm a php dev).

But before I dive in further, I am interested to see how popular Gridsome + Wordpress is. It does not seem to be that popular (nor does Gridsome generall). Given the poor documentation, which seems old-fashioned (bits and pieces presented with too many assumptions made about what reader knows already), I wonder how many devs really use this. Might also explain Gatsby's popularity.

It is possible (though not guaranteed) that we might ask whoever comments, who has the skills, to be that new developer.

Thanks for getting this far!


r/Gridsome • • Mar 20 '20

Is it possible to embed D3 interactivity in a Gridsome's Markdown blog post?

5 Upvotes

I'm trying to add interactive components to some of my posts. I'm not a frontend developer so I'm a bit lost here, any reference would be appreciated!


r/Gridsome • • Jul 28 '19

How and why I chose Gridsome static site generator for my new blog

Thumbnail
blog.woubuc.be
5 Upvotes

r/Gridsome • • Apr 19 '22

Build and Deploy Vue.js Static Sites using Gridsome and GraphQL

Thumbnail
hasura.io
4 Upvotes

r/Gridsome • • Oct 04 '21

How to Build a Reusable Tab Component In Vue.js from Scratch ๐Ÿ‘Œ

Thumbnail
medium.com
4 Upvotes

r/Gridsome • • Jul 01 '20

Form posts with gridsome

4 Upvotes

Hi,

I understand that gridsome renders static markup and data at build time (even if sourced from an API) but could I use vue to post a form to an API / function? or do I need to use a third party integration? Thanks


r/Gridsome • • Mar 03 '21

How best to build random Vue plugins into a Gridsome project if they invoke `window` or do client-side DOM modification?

3 Upvotes

I'm trying to use vue-easy-lightbox in Gridsome app. gridsome build process fails with Could not generate HTML for "/my-page/": ReferenceError: window is not defined.

After some reading it's a totally expected error due to plugin not supporting SSR. But the docs' workaround for this does not seem to work for me.

I found a couple of work-arounds in comments here and thereโ€”most of them fragments. None have worked.

Currently trying to wrap the external component in <ClientOnly> as shown in the Add External Scripts / Without SSR support docs. But it's still missing something since it fails with the same error.

So, how to do this?

Simplified code with documentation workaround:

main.js

import DefaultLayout from '~/layouts/Default.vue'
import VueEasyLightbox from 'vue-easy-lightbox'

export default function (Vue) {
  Vue.component('Layout', DefaultLayout),
  Vue.component('VueEasyLightbox', VueEasyLightbox),
  Vue.use(VueEasyLightbox)
}

MyPage.vue

<template>
  <Layout>
    <ClientOnly>
      <VueEasyLightbox>
       ... 
      </VueEasyLightbox>
    </ClientOnly>
  </Layout>
</template>

<script>
export default {
  components: {
    VueEasyLightbox: () => import('vue-easy-lightbox')
      .then(m => m.VueEasyLightbox)
      .catch() 
    // With this code block, the component doesn't 
    // render on the development server either
  }
}
</script>

r/Gridsome • • Nov 16 '20

Problem getting GraphQL to work with an external REST API

3 Upvotes

I've tried Googgling, reading the docs and trying the Discord. None of which helped so I'm desperate.

My gridsome.server.js looks like this:

// This is for creating the graphql queriable data...

api.loadSource(({ addCollection }) => {
// Use the Data Store API here: https://gridsome.org/docs/data-store-api/
})
api.createPages(async ({ createPage }) => {
const { data } = await axios.get('https://members-api.parliament.uk/api/Location/Constituency/Search?skip=0&take=20')
data.items.forEach(item => {
createPage({
path: \/constituency/${item.value.id}`,component: './src/templates/Constituency.vue',context: {id: item.value.id,name: item.value.name,startDate: item.value.startDate}})})})`

// This is for generating static pages.
api.loadSource(async actions => {
const { constituencies } = await axios.get('https://members-api.parliament.uk/api/Location/Constituency/Search?skip=0&take=20')
const collection = actions.addCollection({
typeName: 'Constituencies'
})
for (const constituency in constituencies) {
collection.addNode({
id: constituency.id,
name: constituency.value.name,
startDate: constituency.value.startDate
})
}
})

Good news: It creates pages for constituencies.

Bad news: When I try doing queries with the GraphQL explorer I get the following error:

{ "error": { "errors": [ { "message": "Cannot query field \"name\" on type \"Constituencies\".", "stringified": "Cannot query field \"name\" on type \"Constituencies\".\n\nGraphQL request:6:9\n5 | id\n6 | name\n | ^\n7 | startDate" }, { "message": "Cannot query field \"startDate\" on type \"Constituencies\".", "stringified": "Cannot query field \"startDate\" on type \"Constituencies\".\n\nGraphQL request:7:9\n6 | name\n7 | startDate\n | ^\n8 | }" } ] } }

I wanted to be able to create a search feature and that means having the GraphQL and querying side of things working. Its great I can create static pages - whoopee - BUT I want to create a search that also uses the API that I can put <page-query> blocks into pages with results for a particular search. But according to the graphQL queries the only available field is "id". Even though I'm using loadSource which I thought should create a GraphQL queriable set of data from the API?

Can anyone help?


r/Gridsome • • Oct 26 '20

What do you use most often? Props or Slots?

Thumbnail
medium.com
3 Upvotes

r/Gridsome • • Oct 15 '20

Is it possible to use Vue 3 with Gridsome

3 Upvotes

Hi. I am trying to settle on a stack to use for a side project and I am liking the idea of JAM stack using Gridsome, as I prefer Vue to React. I'd like to use Vue 3 for this project, but I am unclear as to whether Vue 3 can be used. I guess the Gridsome scaffolding sets things up to use Vue 2 ??

Is it just a case of changing some references?

Any pointers to articles or direct help would be much appreciated.

Thanks in advance.


r/Gridsome • • Aug 20 '20

Gridsome Website with Firebase and Github Page Hosting

3 Upvotes

Hey guys,

I've written a blog about Gridsome and hosting it into Firebase & Github Pages.

The link is here: https://eliakorkmaz.github.io/building-a-blog-with-gridsome-and-publish-it-to-firebase-github-pages/

I would like to get some feedback if it's possible. Maybe there can be any fixable things or something.

Thanks in advance.


r/Gridsome • • Jun 22 '20

Gridsome and Wordpress.com

3 Upvotes

is it possible to use gridsome and wordpress.com or does it have to be wordpress.org? I can't seem to find an answer.


r/Gridsome • • Feb 21 '20

Sorting blog posts by date

3 Upvotes

I spent way too much time today figuring out how to sort blog posts by date and thought I'd share in case it helps anyone else.

I'm using Gridsome with the Casper V3 starter. LOVE IT! One thing I noticed while spinning up a new site was that as I was creating posts, they didn't come up in any particular order. I'm a total n00b to GraphQL so I started searching for ways to get Gridsome to sort blog posts by date. Two things I had to do:

  1. Change "created" field in the blog pages to "date" instead. If you don't call it "date" then the field is treated as String and will sort accordingly.

  2. In gridsome.config.js add sort: { by: "date", order: "ASC" }, to the section that grabs blog files, I put it right after typeName and path so that the resulting GraphQL query would sort the results by that date field.

You'll have to restart the gridsome server if running local in order to see changes as the config is only run on startup. If you're using gridsome develop you won't see the changes until you stop/start the server and you will definitely see errors after you change from created to date if you don't also change the config.

Hope this is helpful to someone.


r/Gridsome • • Dec 26 '19

Releasing gridsome-plugin-manifest v0.2.1

3 Upvotes

Features:

  • Generates a manifest.json from your desired configuration

  • Includes the manifest, and a meta theme-color in the head of each html files automatically

Hope it helps some folks install their future web apps with this plugin!

https://github.com/khalyomede/gridsome-plugin-manifest


r/Gridsome • • Dec 07 '19

Gridsome Source Github API - Fetch data from GitHub

Thumbnail
gridsome.org
3 Upvotes

r/Gridsome • • Aug 12 '19

Gridsome + Wordpress A Love Story

Thumbnail
youtu.be
3 Upvotes

r/Gridsome • • Mar 16 '22

Large companies using Vue.js/Nuxt.js

2 Upvotes

I updated today my article and compared to 2020 it seems that Dribbble and Nespresso no longer use Vue.js while companies like Sony, 9GAG, Foxconn and Aramco have started using it ๐Ÿš€๐Ÿ˜

https://medium.com/notonlycss/google-apple-and-other-users-of-vue-js-e4505359e5d5


r/Gridsome • • Jan 15 '22

Test Production Build Locally

2 Upvotes

Hi everyone! I'm running into a bit of a wall and hoping for some help. It's probably something really simple that I'm overlooking. Our team is working on our lighthouse score, mainly focused on mobile optimization. Is it possible to actually build and serve those compiled files locally? What's the best way to do that and test what our performance is? Thanks, happy Friday.


r/Gridsome • • Nov 02 '21

How to Build an Accordion Component in Vue.JS from Scratch ๐Ÿ‘Œ

Thumbnail
medium.com
2 Upvotes

r/Gridsome • • Apr 23 '21

No auto-generated route names for pages

2 Upvotes

Iโ€™m on a fresh install of Gridsome and noticed that route names are not being auto-generated for pages. When I print $route.name in my template or this.$route.name anywhere else for each page, the only route that has a name is index.vue with the name home. Error pages have a route name of *.

Is anyone else experiencing this? This becomes a problem when I use Google Tag Manager because it relies on route names (unless I push events manually).


r/Gridsome • • Mar 01 '21

I am new to gridsome I was highly impressed by gridsome speed I want to use gridsome but issue is how do I host gridsome projects if I use gridsome + prismic how I host it can someone share youtube link of how to host it

2 Upvotes