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.

warn for missing dependencies

See original GitHub issue

Type of Issue

[ ] Bug Report
[x] Feature Request

Description

With unbundled dependencies library projects must list their dependencies both in the root package.json and in project/<project-name>/package.json as either regular dependencies or peerDependencies. However if a dependency is only listed in the root package.json the library will build without error and the issue will only manifest when the library is included in another project which is likely after the library has already been published.

Expected Behaviour

When building a library project ng-packagr should error or warn when it detects an import that can’t be matched to a project file or an entry in project/<project-name>/package.json.

Version Information

$ node_modules/.bin/ng-packagr --version
ng-packagr: 9.1.5
@angular/*: 9.1.13
typescript: 3.8.3
rxjs: 6.6.3
node: 12.20.1
npm/yarn: 6.14.10

Please include all version numbers that might be relevant, e.g. third-party libraries

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alan-agius4commented, Feb 8, 2021

I think since this functionality is already provided by packages in the toolchain, such as ESLint and TSLInt, we shouldn’t re-invent the wheel.

Let’s reconsider this in the future if we see that is a greater demand for this.

0reactions
github-actions[bot]commented, Mar 15, 2021

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing Dependency Warning - OutSystems 11 Documentation
Missing Dependency Warning ... Check with the producer's owner to determine what the cause might be for this missing dependency.
Read more >
How to fix missing dependency warning when using useEffect ...
Then it cannot show you the warning React Hook useEffect has a missing dependency: 'any thing'. Either include it or remove the dependency...
Read more >
How To Fix "react hook useeffect has a missing dependency"?
An in-depth article on solving the "react hook useeffect has a missing dependency" warning. Why does this warning happen?
Read more >
Warn on missing dependencies or data blocking template ...
In our case, a missing Consul key blocked the rendering of a (complicated) template, which resulted in some head scratching until we hunted...
Read more >
Why does eslint warn about useEffect having a missing ...
useEffect has a missing dependency: 'setItems'. Either include it or remove the dependency array react-hooks/exhaustive-deps.
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