better-docs icon indicating copy to clipboard operation
better-docs copied to clipboard

Example Configuration opts > template Path Sends Error

Open RilDev opened this issue 4 years ago • 0 comments

When I use the configuration available here: https://github.com/SoftwareBrothers/better-docs#customization

I get the error:

FATAL: Unable to load template: Cannot find module '/home/rildev/Projects/helloasso/Helpers/node_modules/better-docs/publish.js/publish'
Require stack:
- /home/cyril/Projects/helloasso/Helpers/node_modules/jsdoc/cli.js
- /home/cyril/Projects/helloasso/Helpers/node_modules/jsdoc/jsdoc.js
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Adding the full node_modules/better-docs path in the opt > template fixes it:

"opts": {
    "template": "node_modules/better-docs"
  },

RilDev avatar May 10 '21 15:05 RilDev