question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

prettier config file is required

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
elevatebartcommented, Jul 16, 2020

Should be better in an hour, sorry about that.

0reactions
florentinapcommented, Jul 16, 2020

Can you try it now ? Bart Ledoux Join me on LinkedIn Or as @elevatebart on Discord, Twitter and Github On Jul 16, 2020, 09:38 -0500, Florentina Petcu @.***>, wrote: > Should be better in an hour, sorry about that. Awesome. Thank you! — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

It works without prettier config file. There is no error. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration File - Prettier
Prettier uses cosmiconfig for configuration file support. This means you can configure Prettier via (in order of precedence):.
Read more >
Require config set to true and no config present. Skipping file.
Require config set to true and no config present. ... Do you have a .prettierrc (or other prettier config) file in the root...
Read more >
VSCode Prettier not respecting Require Config option for ...
I would like to configure the Visual Studio Code Prettier extension to automatically format on save, but only if a .prettierrc file exists ......
Read more >
Config files | Dev Cheatsheets - Michael Currin
Set up a config file: Main config .prettierrc.json; prettier.config.js or .prettierrc.js. Ignore config .prettierignore. Editor config.
Read more >
How to configure Prettier and VSCode - Gleb Bahmutov
You can configure JavaScript code auto-formatting with Prettier to work per-project. ... Require a prettier configuration file to format ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found