Gridsome Build Doesn't Work
See original GitHub issueDescription
I type gridsome build
on the example project, and it generates files without error. I try to load the contents of /dist/
either in a browser locally, or from my server after uploading the contents via FTP. All assets are 404’ing. I thought this was a permissions issue, but I can set them all to 777 and the thing still doesn’t work. The files are seemingly named correctly as it generated them.
The dev server works fine. Whatever this thing is builds is broken. There’s no other help out there. I am sad and alone.
Steps to reproduce
- Follow the Gridsome Getting Started instructions
- Run
gridsome build
- Nothing works
Expected result
I should see the Example Project.
Actual result
I see a broken page with no styles or images.
Environment
Libs:
- @gridsome/cli v0.2.1
- gridsome v0.6.7
Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: v10.16.0
- Platform: Mac
Others:
Mac OS X Mojave 10.14.6
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Troubleshooting - Gridsome
Gridsome is a free & open source Vue.js-powered framework for building websites ... Vue fails silently in production mode and doesn't give a...
Read more >Newest 'gridsome' Questions - Stack Overflow
I have a gridsome project (v0.7.23). I load the Bootstrap framework via npm. Im using node v14.18.0 via nvm. When I import a...
Read more >Getting started with Gridsome - LogRocket Blog
In this article, we will be taking a closer look at Gridsome: how it works, how to get started, how to use Gridsome...
Read more >Gridsome Build fails (Yep, checked the other posts) - Support
EDIT: working now - build command was no working locally, turns out the compiler was crashing due to two empty pages created as...
Read more >Help Needed: Gridsome Project Won't Build, but Develop Works
Help Needed: Gridsome Project Won't Build, but Develop Works ... I am working on my first Gridsome project. ... This is to load...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved this on my own after running into many walls and finding no help, which was a horrible introduction to this “stack”.
For posterity / future reference, I had to set
pathPrefix
to/gridsome
ingridsome.config.js
, which was mentioned nowhere. Apparently the paths can’t be relative for some reason.The build actually works out of the box, in a
production
environment with no additional setting needed. Indevelopment
, it does not create any sitemap.@andrew-gw your approach of trying to load it in some hacky
777
way is not the correct one. Btw, bashing on the stack is not helpful in any way. You should rather join a Slack/Discord or alike and help it grow. 😸 A bigger community will help the Stack grow (it’s currently notLAMP
-sized indeed 🤷♂️). 😉@paolotim try deploying to Netlify and it will work out of the box. 👌