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.

Docs misunderstanding

See original GitHub issue

Hi!

Docs says Starting from process.cwd() (or some other directory defined by the searchPath argument to load()), but the code (https://github.com/davidtheclark/cosmiconfig/blob/master/src/createExplorer.js#L98) actually does nothing at all if a search path is not provided.

From my understanding, it should use process.cwd() by default if no path is provided.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sudo-suhascommented, Jan 16, 2018

Fixed and released in cosmiconfig@4.0.0 🎉

1reaction
davidtheclarkcommented, Jan 11, 2018

I think defaulting searchPath to process.cwd() seems right. So explorer.load() is the equivalent of explorer.load(proces.cwd()). Let’s do that, unless anyone objects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Docs] Misunderstanding description of `build.assetsInlineLimit`
The code actually means " build.assetsInlineLimit will be ignored if you specify build.lib , and ONLY IN THIS CONDITION assets will always ...
Read more >
OpenNotes helps to improve misunderstandings between ...
One of the biggest benefits of the OpenNotes initiative has been clarification of misunderstandings between patients and clinicians, according to the ...
Read more >
Misunderstandings in prescribing decisions in general practice
We aimed to identify misunderstandings between patients and doctors that have potential or actual adverse consequences for taking medicines. Go to: Methods. Our ......
Read more >
C++ Misunderstandings (Using the GNU Compiler Collection ...
14.7 Common Misunderstandings with GNU C++ ; Static Definitions: Static member declarations are not definitions ; Name lookup: Name lookup, templates, and ...
Read more >
What to do if Writing has been Misunderstood or Misinterpreted
Discover what to do if your readers misunderstand your message. ... respond if documents they've produced result in a misunderstanding?
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