gitbook-plugins / gitbook-plugin-search-pro

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

search-pro启用后,执行gitbook serve 报错 #14

Closed theburn closed 7 years ago

theburn commented 7 years ago

您好: 我使用search-pro插件会报错,报错信息如下:

TypeError: Arguments to path.join must be strings

操作系统根是CentOS6.5 , 软件版本信息如下,

[root@epoint opt]# npm --version
1.3.6
[root@epoint opt]# gitbook --version
CLI version: 2.3.0
GitBook version: 3.2.0
[root@epoint opt]# node --version
v0.10.42
[root@epoint opt]#

从软件信息版本看,应该是fs.writeFileSync(path.join(config.output, './search_pro_index.json'),报错了, 然后我console.log 输出了一下config.output ,是undefined

还希望作者有空的话修复一下

yunyixin commented 7 years ago

TypeError: Path must be a string. Received undefined same issue in npm version: 3.10.3 node version: 6.3.1 gitbook-cli version: 2.3.0 gitbook version: 3.2.0 请求解决办法?

theburn commented 7 years ago

感觉是要拼接一个路径,把json文件写到某一个位置,但是这个位置我不知道怎么取?可以方便解释一下么?我可以先写死在代码里面

copriwolf commented 7 years ago

同样的错误,请求解决,谢谢

eagle0445 commented 7 years ago

同样的问题

xunuo commented 7 years ago

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

xunuo commented 7 years ago

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

eagle0445 commented 7 years ago

谢谢,我是用网上的分享解决的, 改了源代码

2017-01-24 14:54 GMT+08:00 许诺 notifications@github.com:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gitbook-plugins/gitbook-plugin-search-pro/issues/14#issuecomment-274724624, or mute the thread https://github.com/notifications/unsubscribe-auth/ACD9VKWJ7TomiX2MWfv_xp2Gqhuf58U3ks5rVaBBgaJpZM4J1hdT .

-- Best Regards!

陶金火

xunuo commented 7 years ago

嗯,谢谢,2.0的代码我已修复了最后一个版本,建议升级到gitbook 3.0,性能和搜索体验会好很多 :)