After migrating an old Angular 11 application to 12, I get some error messages that I have no idea how to solve.
I suspect an issue with the SCSS migration, as this has caused the biggest problems and is supposedly not yet completely clean.
Warning: 3 rules skipped due to selector errors: .igx-filter-contextual-menu [igxButton] > igx-icon + * -> Cannot read property 'type' of undefined .igx-navbar__right > * + * -> Cannot read property 'type' of undefined .igx-navbar__left > * + * -> Cannot read property 'type' of undefined
Maybe someone has an idea?
Thanks in advance,
Frank
Hello,
The warnings you're encountering after migrating your Angular application from version 11 to 12 are related to SCSS (Sass) and specifically involve the igxButton and igx-icon components from the Ignite UI for Angular library. The errors indicate that there are problems with certain CSS selectors, where it seems that the type property of undefined elements is being accessed, causing the issue.
These warnings suggest that the SCSS selectors defined in your stylesheets are not compatible with the expected structure or syntax after the migration. Here's a breakdown of the errors and some steps you can take to troubleshoot and resolve them:
Breakdown of Errors
Steps to Resolve the Issue
npm update igniteui-angular
ng update @angular/core@12 @angular/cli@12
Next Steps
If these approaches and suggestions do not resolve the issues, please consider the following:
I am here to assist you further and will be happy to provide additional support if needed. Please let me know if you need any more information or assistance.
If you require any further assistance on the matter, please let me know.
Regards,
Georgi Anastasov
Entry Level Software Developer
Infragistics