prettier config file is required
See original GitHub issueThe new version of vue-docgen-cli (4.26.2) throws an error if I do not add a prettier config file in my directory, so the output file is not generated.
(node:15859) UnhandledPromiseRejectionWarning: TypeError: Cannot convert undefined or null to object at Function.assign (<anonymous>) at prettyMd (/root/capri/components/capri.components.all/capri.stepper/node_modules/vue-docgen-cli/lib/utils.js:69:162) at Object.<anonymous> (/root/capri/components/capri.components.all/capri.stepper/node_modules/vue-docgen-cli/lib/utils.js:81:43) at step (/root/capri/components/capri.components.all/capri.stepper/node_modules/vue-docgen-cli/lib/utils.js:33:23) at Object.next (/root/capri/components/capri.components.all/capri.stepper/node_modules/vue-docgen-cli/lib/utils.js:14:53) at fulfilled (/root/capri/components/capri.components.all/capri.stepper/node_modules/vue-docgen-cli/lib/utils.js:5:58) (node:15859) 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: 1) (node:15859) [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.
The problem is caused by this commit
Is there any way to fix it, please? I do not think it is ok to add an extra file in my project that is required only by vue-docgen-cli and it is useless for me. Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
Should be better in an hour, sorry about that.
It works without prettier config file. There is no error. Thanks!