Skip to content
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

The SSR example failed #1413

Closed
yl-yue opened this issue Oct 31, 2020 · 4 comments · May be fixed by #1227
Closed

The SSR example failed #1413

yl-yue opened this issue Oct 31, 2020 · 4 comments · May be fixed by #1227
Labels
bug confirmed as a bug WIP

Comments

@yl-yue
Copy link

yl-yue commented Oct 31, 2020

invalid https://docsify.now.sh/

@sy-records sy-records linked a pull request Nov 1, 2020 that will close this issue
21 tasks
@sy-records
Copy link
Member

Thanks for your feedback, we'll try to fix it in the next version.

@sy-records sy-records added the bug confirmed as a bug label Nov 1, 2020
@trusktr
Copy link
Member

trusktr commented Nov 1, 2020

There is a PR in progress for this: #1227

@Koooooo-7 Koooooo-7 added the WIP label Jan 1, 2021
@yl-yue
Copy link
Author

yl-yue commented May 9, 2021

After starting with npm start, the access reports an error:

[root@iZ8vbl0q91x1xZ ssr]# npm start

> [email protected] start /root/ssr
> docsify start . -c ssr.config.js


[SSR] Serving . now.
Listening at http://localhost:4000

TypeError: Cannot read property 'indexOf' of undefined
    at AbstractHistory.parse (/root/ssr/node_modules/docsify-server-renderer/build.js:297:27)
    at Compiler.compile (/root/ssr/node_modules/docsify-server-renderer/build.js:857:37)
    at Renderer.<anonymous> (/root/ssr/node_modules/docsify-server-renderer/build.js:1431:28)
    at Generator.next (<anonymous>)
    at c (/root/ssr/node_modules/docsify-server-renderer/build.js:16:99)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

The configuration is based on docsify-ssr-demo, with only the basePath property changed

module.exports = {
  template: './ssr.html',
  maxAge: 60 * 60 * 1000,
  config: {
    basePath: 'https://ylyue.cn/',
    auto2top: true,
    coverpage: true,
    executeScript: true,
    loadSidebar: true,
    loadNavbar: true,
    mergeNavbar: true,
    maxLevel: 4,
    subMaxLevel: 2,
    name: 'docsify'
  }
}

@sy-records
Copy link
Member

deleted SSR. see #2105

@sy-records sy-records closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed as a bug WIP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants