r/Gridsome • u/93lucasp • Jun 16 '21
Gridsome is it going to die?
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 • u/93lucasp • Jun 16 '21
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 • u/web_dev_etc • Oct 24 '20
r/Gridsome • u/vcoisne • May 21 '21
r/Gridsome • u/Crafty-Astronomer-12 • Nov 30 '20
r/Gridsome • u/mjd300 • Sep 14 '20
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 • u/autisticmice • Mar 20 '20
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 • u/woubuc • Jul 28 '19
r/Gridsome • u/Confidenceismyname • Apr 19 '22
r/Gridsome • u/93lucasp • Oct 04 '21
r/Gridsome • u/mikejharper • Jul 01 '20
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 • u/albedodecero • Mar 03 '21
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 • u/Ashiro • Nov 16 '20
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 • u/93lucasp • Oct 26 '20
r/Gridsome • u/ChromaticRanger • Oct 15 '20
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 • u/swiftylearner • Aug 20 '20
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 • u/-Philologian • Jun 22 '20
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 • u/thatsjet • Feb 21 '20
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:
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.
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 • u/khalyomede • Dec 26 '19
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!
r/Gridsome • u/yagaboosh • Dec 07 '19
r/Gridsome • u/93lucasp • Mar 16 '22
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 • u/redeyez88 • Jan 15 '22
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 • u/93lucasp • Nov 02 '21
r/Gridsome • u/shootwhatsmyname • Apr 23 '21
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).