gridsome: `gridsome build` hangs after Compile assets

Description

Upon creating a new, OOTB project and running gridsome build, it hangs after Compile assets and never creates any HTML files.

Steps to reproduce

  1. Install the gridsome cli: sudo npm install --global @gridsome/cli
  2. Create the project: gridsome create ttoo
  3. cd ttoo
  4. Build with gridsome build

Expected result

A /dist folder with HTML, JS and CSS etc.

Actual result

gridsome build
Gridsome v0.5.7

Initialize - 0.45s
Load sources - 0.03s
Create GraphQL schema - 0.03s
Set up routes - 0s
Generate code - 0.02s
Bootstrap finish - 0.54s
Run GraphQL (0 queries) - 0s
Compile assets - 3.15s

A /dist folder with:

/assets/css/*styles..css /assets/js/app|component|page*.js /assets/manifest/client|server.json

Environment


Libs:
- gridsome version: 0.5.7
- @gridsome/cli version: 0.0.9
 
For Tooling issues:
- Node version: 10.15.3
- Platform:  Mac 10.14.4

Others:
- Yarn version: 1.15.2

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 9
  • Comments: 26 (8 by maintainers)

Commits related to this issue

Most upvoted comments

I also experienced this and tried to do some debugging. It works when downgrading vue-router. Can anyone else confirm this? Try adding this to package.json and reinstall dependencies with Yarn:

"resolutions": {
  "gridsome/vue-router": "3.0.2"
}

@vandelay87 Your SVGs should be fine. This bug is caused by a change in the latest version of vue-router. I’ll publish a fix later today 😃

@vandelay87 your SVGs are somehow dependent on using NPM instead of Yarn?

Looks like the vue-router team has been busy. This issue was fixed in 3.0.4 but reintroduced in 3.0.5 and then fixed again in 3.0.6. So just make sure your lock files use the latest vue-router.

Updated vue-router to 3.0.6 and I can confirm this is working. My project is building now. Thank you very much! 😄

Looks like the vue-router team has been busy. This issue was fixed in 3.0.4 but reintroduced in 3.0.5 and then fixed again in 3.0.6. So just make sure your lock files use the latest vue-router.

@hjvedvik @sergeyfilimonov @timcreatewell @apertureless @allanwhite

Pasted the below code into package.json:

"resolutions": {
  "gridsome/vue-router": "3.0.2"
}

Here’s a codesandbox of my site.

Tried uninstalling node modules, used '‘npm-force-resolutions’ package to downgrade as well, reinstalled node_modules, tried gridsome build and still hangs.

Any other suggestions guys? Driving me nuts.