-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
示例不能访问且demo在无法运行,https://docsify.now.sh/ #7
Comments
npm start 在package.json里对应的是 如果把docs/与package.json 放在同一级,你启动项目的cli应该是 |
可以出个动图或视频吗?这个项目在本地无法运行。你说的docs在文档,和这个项目中都没有提到。
|
初步判断是一个bug:
Line1327: this.router = new AbstractHistory(config); |
在文档 docsify/ssr.md at develop · docsifyjs/docsify 中有说明,但是这个demo项目是无法运行的。 |
github中搜索其他人的代码,找到了可以直接运行的demo。 |
从其他人的代码中看到只是简单的把json字符添加到htrml,不是真实的html。官方demo 链接访问不了,如果不是渲染成seo可以爬取的 md ->text div -dom。那也就不用耗费几个小时尝试跑通demo了。 |
应该把这个demo删掉,否则浪费大家时间。 |
启动项目后续显示正常,访问http://localhost:4000后,控制台就报错。
D:\workspace\ssrDemo>npm start
[SSR] Serving . now.
Listening at http://localhost:4000
TypeError: Cannot read property 'indexOf' of undefined
at AbstractHistory.parse (D:\workspace\ssrDemo\node_modules\docsify-server-renderer\build.js:267:27)
at Compiler.compile (D:\workspace\ssrDemo\node_modules\docsify-server-renderer\build.js:813:37)
at Renderer. (D:\workspace\ssrDemo\node_modules\docsify-server-renderer\build.js:1384:28)
at Generator.next ()
at c (D:\workspace\ssrDemo\node_modules\docsify-server-renderer\build.js:16:99)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
The text was updated successfully, but these errors were encountered: