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

build-sidebar has error #299

Closed
geeksesi opened this issue Oct 29, 2019 · 3 comments
Closed

build-sidebar has error #299

geeksesi opened this issue Oct 29, 2019 · 3 comments

Comments

@geeksesi
Copy link
Contributor

hi,
when i try to run this doc.

Building _sidebar.md
(node:2984) UnhandledPromiseRejectionWarning: TypeError: fs.opendirSync is not a function
    at getFiles (C:\Users\javad\Documents\public_html\Scripts\Learn-JavaScript\scripts\build-sidebar.js:7:18)
    at buildSection (C:\Users\javad\Documents\public_html\Scripts\Learn-JavaScript\scripts\build-sidebar.js:21:23)
    at buildSidebar (C:\Users\javad\Documents\public_html\Scripts\Learn-JavaScript\scripts\build-sidebar.js:36:25)
    at Object.<anonymous> (C:\Users\javad\Documents\public_html\Scripts\Learn-JavaScript\scripts\build-sidebar.js:44:1)
    at Module._compile (internal/modules/cjs/loader.js:936:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
    at Function.Module._load (internal/modules/cjs/loader.js:703:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
    at internal/main/run_main_module.js:17:11
(node:2984) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:2984) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

npm version : 6.10.3
node version : 12.10.0
windows 10

@Swap76
Copy link
Owner

Swap76 commented Oct 29, 2019

@geeksesi I was also facing the same issue after that one person helped me with it that building _sidebar.md will only get build with Node version 13.0.1 i.e latest

It will be cool if you can add this in Readme.md

geeksesi added a commit to geeksesi/Learn-JavaScript that referenced this issue Oct 29, 2019
@geeksesi
Copy link
Contributor Author

i did it.
also a problem has in windows cmd ( cmd can't run node ./scripts/build-sidebar.js & docsify serve docs )
must be use as 2 command

@Swap76
Copy link
Owner

Swap76 commented Oct 29, 2019

@geeksesi Cool Will check the PR

Thanks for the heads up :-)

Swap76 added a commit that referenced this issue Oct 29, 2019
explain docsify run (issue:#299)
@Swap76 Swap76 closed this as completed Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants