apidoc-template
apidoc-template copied to clipboard
error on apidoc version 0.50.1: no such file or directory, lstat 'template/src/css/main.css'
nice theme! I use the newest apidoc (version 0.50.1) and run the generate command then get the message below:
error: ENOENT: no such file or directory, lstat 'template/src/css/main.css'
[error] apidoc encountered an error during documentation generation!
I notice the demo use apidoc version 0.28.1, so i reinstall it and the message goes away.
hi same errore here is it planned to fix this theme for version 0.50.1 of apidoc? thanks
same here, any plans for this? it's a great theme
Same here :( error: ENOENT: no such file or directory, lstat 'template\src\css\main.css'
It seems that the structure of the template has changed in the latest versions of ApiDoc:
From the code it seems that a similar structure is required:
- fonts
- img
- src
- index.html
Thank you, Riccardo
same problem
same problem
@ahmed-dinar
same problem :(
Try using version 0.29.0
Hello @ahmed-dinar,
We are at the end of December 2022 and the problem is still present.
Do you know how to fix it?
Same here @ahmed-dinar
I just now switched to the version 0.29.0 in order to compile the template. Turns out documenting an API from source code is a lot harder than it should be. No wonder people are not doing it as they should!
Anyway, the fix seems to be installing using:
npm i -g [email protected] (globally) npm i [email protected] (or locally to your project)
I might fork and try to improve this template, but I don't know if I quite understand it just yet.
@maietta Thank you, it works!
if macOS user
brew uninstall apidoc
npm i -g [email protected]
npm i [email protected]