warn for missing dependencies
See original GitHub issueType 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:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.