cva Error: Cannot read property 'nativeElement' of undefined
See original GitHub issueπ bug report
Affected Package
The issue is caused by package @angular/....Is this a regression?
Yes, the previous version in which this bug was not present was: 7Description
In ViewChild if i pass {static:true}
then it is working fine but in older version of angular without {static: true}
it was working fine.
π¬ Minimal Reproduction
https://stackblitz.com/...Angular 10 https://stackblitz.com/edit/angular-ivy-sili1e?file=src%2Fapp%2Frequired-text%2Frequired-text.component.ts Angular 7 https://stackblitz.com/edit/angular-7-master-swasmm?file=src%2Fapp%2Fapp.component.html
π₯ Exception or Error
π Your Environment
Angular Version:
"@angular/core": "^10.0.9",
Anything else relevant?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Cannot read property 'nativeElement' of undefined in angular ...
Seem like you are trying to access the element when it not visible to DOM yet so what you can do is run...
Read more >Cannot read property 'nativeElement' of undefined - Ionic Forum
I am using ArcGIS Map using angular and am getting error to render my HTML Div tag and error is βCannot read property...
Read more >Cannot read property '$ngoptionlabel' of null when using ng ...
The error means that one of the items in the array being displayed is null . To solve this, filter null s out...
Read more >Error: Cannot read property 'nativeElement' of undefined
There are error at console with this message "ERROR TypeError: Cannot read property 'nativeElement' of undefined".
Read more >Cannot read property 'nativeElement' of undefined and ...
Cannot read property 'nativeElement' of undefined and IntegrationError: We could not retrieve data from the specified Element.
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
Yes, itβs a breaking change. But angular 8 yelled with deprecation warnings at you - if the option was missing - and the migration to ng8 actually added
{static: true}
to all ViewChilds.So itβs an unfortunate consequence of skipping the angular 8 major
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.