apidoc-template icon indicating copy to clipboard operation
apidoc-template copied to clipboard

error on apidoc version 0.50.1: no such file or directory, lstat 'template/src/css/main.css'

Open wziwen opened this issue 3 years ago • 13 comments

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.

wziwen avatar Oct 27 '21 07:10 wziwen

hi same errore here is it planned to fix this theme for version 0.50.1 of apidoc? thanks

nomorelogic avatar Oct 30 '21 08:10 nomorelogic

same here, any plans for this? it's a great theme

mohamedashrafothman avatar Nov 01 '21 21:11 mohamedashrafothman

Same here :( error: ENOENT: no such file or directory, lstat 'template\src\css\main.css'

Cundalf avatar Nov 16 '21 13:11 Cundalf

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

canonex avatar Nov 29 '21 10:11 canonex

same problem

fabioselau077 avatar Jan 12 '22 04:01 fabioselau077

same problem

medchkir avatar Apr 22 '22 07:04 medchkir

@ahmed-dinar

FC5570 avatar Jun 15 '22 15:06 FC5570

same problem :(

voyager3m avatar Jul 12 '22 15:07 voyager3m

Try using version 0.29.0

joaquinicolas avatar Jul 26 '22 20:07 joaquinicolas

Hello @ahmed-dinar,

We are at the end of December 2022 and the problem is still present.

Do you know how to fix it?

everdevFR avatar Dec 30 '22 11:12 everdevFR

Same here @ahmed-dinar

MOTA9100 avatar Mar 01 '23 15:03 MOTA9100

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 avatar Mar 01 '23 15:03 maietta

@maietta Thank you, it works!

if macOS user

brew uninstall apidoc

npm i -g [email protected]
npm i [email protected]

seohyunjun avatar Jun 19 '24 11:06 seohyunjun