[BugReport] - More explicit error message when directives are missing
See original GitHub issueI’m submitting a …
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior When you forgot to add a directive for one of your components and you use Inputs feature, the error is : “Can’t bind to ‘@INPUT_NAME’ since it isn’t a known native property”
Expected/desired behavior This error doesn’t make sense according to the actual mistake. A proper error would be to report the lack of the “directives” declaration in the @component
Reproduction of the problem I build this little example app, clone it and follow the readme https://github.com/etiennechabert/BugReportAG2
What is the expected behavior? A more explicit message
What is the motivation / use case for changing the behavior? Being more friendly with AG2 users, particularly new ones 😉
Please tell us about your environment:
- Angular version: 2.0.0-rc.5
- Browser: [all]
- Language: [TypeScript 1.8.10]
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
117695 – Receiving "RENDER" missing on display...
0) - All versions of VNC that I am aware of From the initial bug report, the following error message indicates to me...
Read more >Do's and don'ts of bug reporting - Shake
Bug reporting is meant to help developers with debugging. However, a bug report must have certain characteristics to be considered helpful.
Read more >Documentation: 15: 5. Bug Reporting Guidelines - PostgreSQL
Your bug reports play an important part in making PostgreSQL more reliable because ... A program accepts invalid input without a notice or...
Read more >Best guidelines for bug reporting? - SQA Stack Exchange
In my opinion, the best possible bug report (assuming that the person that sends the error report does not know the causes of...
Read more >Bug Reports - Manifold Software - GIS and Database Tools
Don't worry about looking dumb or missing something obvious in the user manual. Please don't hesitate: send in a bug report. Everybody knows...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top 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
Thanks for this detailed answer @pkozlowski-opensource.
I created this ticket because I believe that forgotten directives are one of the basic errors when you are new with AG2 (at least for me ^^).
A more generic error message (with a list of possible cases including typo, directives and so on) could a least put the developer on one of the good ways, instead of the wrong one. With the actual error message I checked the @Input declaration of my component multiple time before finally founding the real reason for this error.
Anyway it’s good to hear that you will be able to be more specific in the future on this kind of mistake.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.