knuckleswtf / scribe-js

Generate API documentation for humans from your Node.js codebase.
https://scribe.knuckles.wtf/nodejs/
52 stars 8 forks source link

Can not generate html markdown and collections coreectly #10

Closed abduljeleelng closed 3 years ago

abduljeleelng commented 3 years ago

What happened?

  1. I set my configuration to...
  2. Then I ran npx scribe:generate ...
  3. But I saw ⓘ Writing docs... ✖ Writing HTML docs ◼ Writing Postman collection ◼ Writing OpenAPI spec Error: Promise rejected with value: [ [Error: ENOENT: no such file or directory, lstat 'C:\nodejs\blog_api\node_modules\@knuckleswtf\scribe\resources\images'] { errno: -4058, code: 'ENOENT', syscall: 'lstat', path: 'C:\nodejs\blog_api\node_modules\@knuckleswtf\scribe\resources\images' } ] at process. (C:\nodejs\blog_api\node_modules\hard-rejection\index.js:15:12) at process.emit (events.js:375:28) at processEmit [as emit] (C:\nodejs\blog_api\node_modules\signal-exit\index.js:175:34) at processPromiseRejections (internal/process/promises.js:245:33) at processTicksAndRejections (internal/process/task_queues.js:96:32) instead of... done

Screenshots or stack traces: image

My environment:

My Scribe config (minus the comments):

Additional info:

abduljeleelng commented 3 years ago

Hello team, @shalvah any help on this

shalvah commented 3 years ago

Can you try updating to 2.0.1? Should be fixed now.

abduljeleelng commented 3 years ago

Thanks, @shalvah, I will try the new version

abduljeleelng commented 3 years ago

Hello @shalvah, the error still persists

I have updated the package to "@knuckleswtf/scribe-express": "^2.0.1"

image

shalvah commented 3 years ago

That's not the same error. You didn't even look at the error message. It's because you're running a wrong command. It's npx scribe generate (space, not colon). And you're missing a flag too. You should really pay attention to the docs.

abduljeleelng commented 3 years ago

Thank @shalvah, it is fine now