question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gridsome Build Doesn't Work

See original GitHub issue

Description

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.

image

Steps to reproduce

  1. Follow the Gridsome Getting Started instructions
  2. Run gridsome build
  3. 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:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
andrew-gwcommented, Aug 6, 2019

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 in gridsome.config.js, which was mentioned nowhere. Apparently the paths can’t be relative for some reason.

1reaction
kissucommented, Mar 21, 2020

The build actually works out of the box, in a production environment with no additional setting needed. In development, 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 not LAMP-sized indeed 🤷‍♂️). 😉

@paolotim try deploying to Netlify and it will work out of the box. 👌

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found