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.

[BugReport] - More explicit error message when directives are missing

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
etiennechabertcommented, Aug 10, 2016

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.

0reactions
angular-automatic-lock-bot[bot]commented, Aug 23, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

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