- This topic has 7 replies, 2 voices, and was last updated 2 years, 6 months ago by support-swapna.
-
AuthorPosts
-
ChristianParticipantHi,
Recently I switched from CodeMix inside latest Eclipse to MyEclipse 2021.5.24. Almost everything works fine with my migrated Java and Angular projects, but there is one annoying issue in validation of Angular templates, which was fine in CodeMix.
Some Angular elements seem to be unknown to the HTML validator, and thus marked in red. This happens for the following standard elements, but maybe I missed some:
– *ngIf: Can’t bind to ‘ngIf’ since it isn’t a known property of ‘br’.
– *ngFor: Can’t bind to ‘ngForOf’ since it isn’t a known property of ‘app-person-entry’.
– [formGroup]: Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’.
It also happens for some elements from 3rd party libraries like fa-icon from @fortawesome/angular-fontawesome.Is there some configuration that I can change to avoid this? Because lots of my templates have an *ngIf on root element, most of my template code is underlined in red 🙁
Thanks in advance for any help.
Best regards,
Christian
support-swapnaModeratorChristian,
Sorry that you are seeing this issue.
Which version of Angular CLI is this project based on? We have a known issue with incorrect validation for Angular 13 projects.
The validation and other Angular support in MyEclipse 2021 comes from Language Server tech, but we do have some breaks which the dev team is looking into.Apologies for inconvenience caused.
–Swapna
Genuitec Support
ChristianParticipantHi Swapna,
Indeed I use Angular 13, and it is not so easy to switch back. Is there a chance that the “breaks” will be fixed soon? If not, do you know a workaround?
Thanks in advance.
Best regards,
Christian
ChristianParticipantHi Swapna,
Anything new on this one?
Thanks in advance.Best regards,
Christian
support-swapnaModeratorChristian,
This is a high priority fix for the next release of MyEclipse due in first quarter of this year. Unfortunately, apart from ignoring the errors, there is no workaround for now.
Apologies for inconvenience caused.
–Swapna
Genuitec Support
ChristianParticipantHi Swapna,
Thanks for your answer. Although ignoring the error messages is quite hard, I’ll live with it.
Regards,
Christian
ChristianParticipantHi Swapna,
I just installed latest version of MyEclipse, and the error messages are indeed gone. Thanks for the fix!
Best regards,
Christian
support-swapnaModeratorChristian,
Thank you for picking up the update and sharing the feedback.
Do let us know if you see any other issues.–Swapna
Genuitec Support -
AuthorPosts