You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Add option to IonicConfig to disable Ionic warning and error logs #29814
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
I am (still) getting an endless error message which doesn't describe what the problem actually is.
this was the old issue, which was apparently caused by domino. #27564
Now, after upgrading Angular from 15.2.9 to 16.2.12, the domino library is not present in node_modules anymore. But the error message is back again.
Another problem below is with the labelText.
It looks like label="" is a mandatory attribute of ion-select.
If I only provide the aria-label attribute, like the documentation suggests, I get the above error.
So, I got it working with an empty label="" and some CSS hacks.
Expected Behavior
there are no errors in the console after Ionic update.
@aleksander351 if the issue you are experiencing is the same as the one you referenced, have you opened a ticket with that respective project?
Ionic Framework is not responsible for breakages in Angular or packages used by Angular. That team would the best to report the issue to, especially if they've addressed a similar issue in the past.
@aleksander351 if the issue you are experiencing is the same as the one you referenced, have you opened a ticket with that respective project?
Ionic Framework is not responsible for breakages in Angular or packages used by Angular. That team would the best to report the issue to, especially if they've addressed a similar issue in the past.
Ionic is dependent on Angular, not Angular on Ionic. (IF Ionic want's to continue to support Angular of course).
If Angular doesn't use strict null checks, so shouldn't Ionic.
On a side note, in Angular there is no need for IonViewDidEnter etc. Ionic decided to "extend" Angulars navigation logic, introducing new problems that it needs to maintain.
Angular didn't break anything, Ionic was not and continues to not play well with Angular. Don't even get me started on SSR and Hydration.
After all, the mountain didn't come to Mohammad.
I hope this wasn't too much of a rant. I understand it's difficult to keep up with their changes. Now if they decide to ditch zone, I don't imagine Ionic keeps depending on zone.
Ionic is dependent on Angular, not Angular on Ionic. (IF Ionic want's to continue to support Angular of course).
External changes made by Angular or dependencies of Angular that impact the compatibility of features such as web components are not Ionic's responsibility. This includes the usage of domino for Angular's earlier iterations of SSR or Angular's new SSR strategy that is not compatible with Ionic Framework and we (both Angular and Ionic Framework teams) have no plans of supporting.
I hope this wasn't too much of a rant. I understand it's difficult to keep up with their changes. Now if they decide to ditch zone, I don't imagine Ionic keeps depending on zone.
I don't mind the feedback. I'm no longer on the team that maintains this project, I just volunteer and jump in to try and help provide responses and information that may help with the resolution. In this case, the issue you referenced the team had acknowledged it needed to be resolved externally.
The request for suppressing Ionic's warnings has come up a number of times and I do agree that should be revisited. Especially in the case of CI/test environments, warnings should be suppressed through the Ionic config. Let me ask the question internally with the team and see if they would have an interest in supporting this configuration.
After speaking with the team, we are going to log this as a feature request. We'd like to introduce a new option on the config that lets developers specify which log level they want to print. All messages at or above that severity would be logged.
changed the title [-]bug: cryptic error messages continue[/-][+]feat: Add option to IonicConfig to disable Ionic warning and error logs[/+]on Sep 3, 2024
Thanks for the effort. The reason I closed it is because it's refering to versions of Ionic that probably won't be maintained in the future. The problem, in my case at least, is there for quite a while now. Like mentioned before, I could get rid of the problem by patching the supposedly responsible domino library. With the update of Angular to 17, there is no domino dependency anymore and the long error messages came right back.
After speaking with the team, we are going to log this as a feature request. We'd like to introduce a new option on the config that lets developers specify which log level they want to print. All messages at or above that severity would be logged.
Honestly would prefer something a little more condensed we can reuse across the functions. An enum or numeric log level may work best.
Contributions are welcome if this feature speaks to you 😆
There is a --no-interactive flag already. You think I might use something like that? But I am not using the Ionic Cli to build the ssr App. Not sure if that's even possible.
Used patch-package and manually removed all [Ionic Warning] and printIonWarning method calls I could find in @Ionic/core. Dist files and all. It still doesn't want to die. Unbelievably pesky piece of software.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
sean-perkins commentedon Aug 30, 2024
@aleksander351 if the issue you are experiencing is the same as the one you referenced, have you opened a ticket with that respective project?
Ionic Framework is not responsible for breakages in Angular or packages used by Angular. That team would the best to report the issue to, especially if they've addressed a similar issue in the past.
aleksander351 commentedon Sep 1, 2024
Ionic is dependent on Angular, not Angular on Ionic. (IF Ionic want's to continue to support Angular of course).
If Angular doesn't use strict null checks, so shouldn't Ionic.
On a side note, in Angular there is no need for IonViewDidEnter etc. Ionic decided to "extend" Angulars navigation logic, introducing new problems that it needs to maintain.
Angular didn't break anything, Ionic was not and continues to not play well with Angular. Don't even get me started on SSR and Hydration.
After all, the mountain didn't come to Mohammad.
I hope this wasn't too much of a rant. I understand it's difficult to keep up with their changes. Now if they decide to ditch zone, I don't imagine Ionic keeps depending on zone.
aleksander351 commentedon Sep 1, 2024
Is there at least an option to turn those logs off?
[Ionic Warning]: The "helper" slot has been deprecated in favor of using the "helperText" property on ion-input or ion-textarea.sean-perkins commentedon Sep 3, 2024
External changes made by Angular or dependencies of Angular that impact the compatibility of features such as web components are not Ionic's responsibility. This includes the usage of domino for Angular's earlier iterations of SSR or Angular's new SSR strategy that is not compatible with Ionic Framework and we (both Angular and Ionic Framework teams) have no plans of supporting.
I don't mind the feedback. I'm no longer on the team that maintains this project, I just volunteer and jump in to try and help provide responses and information that may help with the resolution. In this case, the issue you referenced the team had acknowledged it needed to be resolved externally.
The request for suppressing Ionic's warnings has come up a number of times and I do agree that should be revisited. Especially in the case of CI/test environments, warnings should be suppressed through the Ionic config. Let me ask the question internally with the team and see if they would have an interest in supporting this configuration.
sean-perkins commentedon Sep 3, 2024
After speaking with the team, we are going to log this as a feature request. We'd like to introduce a new option on the config that lets developers specify which log level they want to print. All messages at or above that severity would be logged.
e.g.:
Default would match the log levels today, which would be
WARNING.The implementation would check the log level in the existing utility functions that Ionic Framework uses for logging messages: https://github.com/ionic-team/ionic-framework/blob/main/core/src/utils/logging/index.ts
e.g.:
Honestly would prefer something a little more condensed we can reuse across the functions. An enum or numeric log level may work best.
Contributions are welcome if this feature speaks to you 😆
[-]bug: cryptic error messages continue[/-][+]feat: Add option to IonicConfig to disable Ionic warning and error logs[/+]aleksander351 commentedon Sep 7, 2024
Thanks for the effort. The reason I closed it is because it's refering to versions of Ionic that probably won't be maintained in the future. The problem, in my case at least, is there for quite a while now. Like mentioned before, I could get rid of the problem by patching the supposedly responsible domino library. With the update of Angular to 17, there is no domino dependency anymore and the long error messages came right back.
aleksander351 commentedon Sep 16, 2024
There is a --no-interactive flag already. You think I might use something like that? But I am not using the Ionic Cli to build the ssr App. Not sure if that's even possible.
aleksander351 commentedon Sep 16, 2024
Used patch-package and manually removed all
[Ionic Warning]andprintIonWarningmethod calls I could find in @Ionic/core. Dist files and all. It still doesn't want to die. Unbelievably pesky piece of software.feat(config): add logLevel option to suppress ionic warnings and erro…
ionitron-bot commentedon Apr 12, 2025
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.