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.

Improve handling library.json dependencies

See original GitHub issue

Currently PlatformIO installs library.json dependencies only if a library was installed via $ pio lib CLI or specifically declared via lib_deps. It fails with Error: Could not find xxxdependency foryyy` library.

Temporary solution

A temporary solution is to declare missed dependencies in the project’s lib_deps option.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:20 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
ivankravetscommented, Oct 19, 2020

Is there any known workaround for this at least?

Yes, add dependencies to lib_deps:

1reaction
programminghoch10commented, Sep 27, 2020

Hello, I’ve noticed that dependencies of /lib/somelib/library.json do not get picked up by the dependency finder. Is this related to this or should i open another issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to keep your JavaScript libraries up to date
The general idea is to have a service that monitors your project's dependencies and even opens pull requests to update them. They can...
Read more >
Creating a modern JS library: package.json and dependencies
Your package.json is among the most important files in your project. It handles dependencies, exports, versioning, naming, etc. package.json ...
Read more >
Improve handling of the external libraries [#3270102] | Drupal.org
Problem/Motivation Webform module pins its external libraries dependencies to a specific version and uses custom methods of including them into the project.
Read more >
An In-Depth Explanation of package.json's Dependencies
This article describes different types of dependencies in package.json , and shows a few solutions we've adopted regarding peerDependencies issues during our ...
Read more >
"FATAL ERROR: No such file" from library.json "dependencies"
kwNodeKit/library.json , I specify dependencies thus: ... Is there a way of handling libraries with spaces in their names in library.json ...
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