gitbook-plugins / gitbook-plugin-search-pro

Gitbook search engine pro. (支持中文搜索)
Apache License 2.0
96 stars 29 forks source link

TypeError: Path must be a string. Received undefined #11

Closed voxelbustersold closed 7 years ago

voxelbustersold commented 8 years ago

Error on loading this plugin. Removing this plugin works fine without any issues.

Please update to gitbook 3.0.3 and check once.

ibigbug commented 8 years ago

Same issue

image

kxxoling commented 8 years ago

Same issue occurred. Error here: https://github.com/gitbook-plugins/gitbook-plugin-search-pro/blob/master/main.js#L107

Ruanxingzhi commented 7 years ago

同。 报错:TypeError: Arguments to path.join must be strings

$ gitbook --version
CLI version: 2.3.0
GitBook version: 3.1.1
$ npm --version
1.4.21
$ node --version
v0.10.25

@xunuo

somax commented 7 years ago

+1

xsbreakaway commented 7 years ago

same error

andineck commented 7 years ago

I got the same error with this environment:

$ gitbook -V CLI version: 2.3.0 GitBook version: 3.0.3

$ node -v v6.9.1 $ npm -v 3.10.8

tankilo commented 7 years ago

Unlucky the same problem came across.....

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.join (path.js:1211:7)
    at Object.finish (XXXXX/node_modules/gitbook-plugin-search-pro/main.js:107:35)
    at XXXXX/.gitbook/versions/3.2.2/lib/output/callHook.js:48:29
    at XXXXX/.gitbook/versions/3.2.2/lib/utils/promise.js:22:20
    at _fulfilled (XXXXX/.gitbook/versions/3.2.2/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (XXXXX/.gitbook/versions/3.2.2/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (XXXXX/.gitbook/versions/3.2.2/node_modules/q/q.js:796:13)
    at XXXXX/.gitbook/versions/3.2.2/node_modules/q/q.js:857:14
    at runSingle (XXXXX/.gitbook/versions/3.2.2/node_modules/q/q.js:137:13)

CentOS 7 64

$ node -v
v6.9.2
$ npm -v
3.10.9
$ gitbook -V
CLI version: 2.3.0
GitBook version: 3.2.2

book.json

"plugins": [
        "-search",
        "search-pro@1.0.9"
    ],
    "pluginsConfig": {
        "search-pro": {
            "cutWordLib": "nodejieba",
            "defineWord": ["gitbook-use"]
         }
    }
}
twheastasia commented 7 years ago

same error. According to this https://github.com/gitbook-plugins/gitbook-plugin-search-pro/blob/master/main.js#L107 And then I change the value of "config.output" into a certain directory name temporarily in the module. It works for me.

xunuo commented 7 years ago

抱歉,请问使用的gitbook是什么版本?2.x版本我已不准备再继续维护,准备更新为3.x :) sorry, which version of gitbook do you use?

xunuo commented 7 years ago

抱歉,让你久等了,目前已支持到gitbook 3.x,请根据readme试用,新年快乐 :)