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.

Form controls are not shown - very annoying bug

See original GitHub issue

Which @angular/* package(s) are the source of the bug?

forms

Is this a regression?

Yes

Description

Let’s say I have a reactive form and I have a switch which shows/hides some dependent inputs. But when for those dependent inputs FormControls are not defined, those controls do not show up on the UI. And THERE IS NO error, which is really annoying!

See the stackblitz. On the form, click on a [Have Plates] button.

To see the problem in code, open app/components/form-view.component.ts and see my comment.

The problem is the error:

Cannot find control with name: ‘licPlatesHowMany’

only shows up in the console when the project is running in the stackblitz, but it does NOT show up when running the project locally (ng serve)! It was really hard to find! Please make sure the error is ALWAYS generated in the console.

Please provide a link to a minimal reproduction of the bug

https://angular-ivy-1vwhz7.stackblitz.io

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

see the stackblitz

Anything else?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KingMariocommented, Aug 26, 2022

Downloaded it and run with ng serve. While click [Have Plates] button got the error:

main.js:1 ERROR TypeError: Cannot read properties of null (reading '_rawValidators')
    at _E (main.js:1:152821)
    at Cg (main.js:1:167147)
    at Sc (main.js:1:165992)
    at n.addControl (main.js:1:173621)
    at n._setUpControl (main.js:1:176621)
    at n.ngOnChanges (main.js:1:175969)
    at n.Wk (main.js:1:20640)
    at yI (main.js:1:24973)
    at Uy (main.js:1:24774)
    at Ou (main.js:1:24494)
0reactions
angular-automatic-lock-bot[bot]commented, Nov 4, 2022

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

Controls disappear from a form although they are still in the ...
It is stupid: all controls are listed in the source code of the Designer but do not show up in Design view. I...
Read more >
c# - Windows form controls disappeared - Stack Overflow
My setup: Windows 7 x64; Visual Studio 2017 Pro x64; Windows C# Forms project; Missing controls (most of time) have been inside a...
Read more >
Visual Studio 2019 Winform designer bugs
This is a very annoying bug. It has a manifestation that is not harmless. Sometimes the form editor just moves bunches of labels...
Read more >
The last version has lots of annoying bugs - Redgate forums
Hi, I'm a long long time user of .NET Reflector, which has still advantages over free alternatives to my eyes.
Read more >
48333 - Ask for confirmation of window close if form has been ...
Component: User Interface Design → HTML Form Controls ... It is very annoying to have many tabs open and then loose them all...
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