gh-pages -d build gives Error “file” argument must be a non-empty string

大兔子大兔子 提交于 2019-12-01 17:47:00

Got the same issue; this answer solved my problem: https://stackoverflow.com/a/57315930/11879312

"Seems like a bug in gh-pages 2.1. I solved mine by downgrading gh-pages to version 2.0: yarn add gh-pages@2.0 -D or npm install gh-pages@2.0 --dev."

I think the command is like this.

gatsby -d public -b master

Where public is the folder you want to push and master is the branch you want to push to. Please run your build before this

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!