ulivz / vuepress-plugin-yuque

Input: Yuque Repo, Output: VuePress Site!
https://vuepress-plugin-yuque.ulivz.com
MIT License
304 stars 37 forks source link

build error Cannot infer repoId from repoUrl #42

Open qixiaobo opened 4 years ago

qixiaobo commented 4 years ago
AssertionError [ERR_ASSERTION]: [CANNOT_FIND_GROUP] Cannot infer repoId from repoUrl: https://www.yuque.com/ant-design/course
    at Function.inferRepoByUrl (/Users/qixiaobo/work/yuque-doc/node_modules/vuepress-plugin-yuque/lib/yuque.js:110:5)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
{
  "name": "yuque-doc",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "devDependencies": {
    "vuepress": "^1.0.0-rc.1",
    "vuepress-plugin-yuque": "^0.6.1"
  },
  "scripts": {
   "dev": "vuepress dev .",
   "build": "vuepress build ."
 }
}
qixiaobo commented 4 years ago

I found yuque changes its security policy.

出于对知识库安全性的调整,使用第三方 API 访问知识库,需要传入环境变量 YUQUE_TOKEN,在语雀上点击 个人头像 -> 设置 -> Token 即可获取。

We should put token here, it will be fine