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
- Install the gridsome cli:
sudo npm install --global @gridsome/cli - Create the project:
gridsome create ttoo cd ttoo- 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
- refactor(app): resolve app in router.onReady (#366) — committed to gridsome/gridsome by hjvedvik 5 years ago
I also experienced this and tried to do some debugging. It works when downgrading
vue-router. Can anyone else confirm this? Try adding this topackage.jsonand reinstall dependencies with Yarn:@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?
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-routerteam has been busy. This issue was fixed in3.0.4but reintroduced in3.0.5and then fixed again in3.0.6. So just make sure your lock files use the latestvue-router.@hjvedvik @sergeyfilimonov @timcreatewell @apertureless @allanwhite
Pasted the below code into package.json:
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 buildand still hangs.Any other suggestions guys? Driving me nuts.