Skip to content

feat: Add option to IonicConfig to disable Ionic warning and error logs #29814

Closed
@aleksander351

Description

@aleksander351

Prerequisites

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.

image

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.

ion-select works without the label attribute.

Steps to Reproduce

Everything is already described here.

#27564

Code Reproduction URL

https://github.com/aleksander351/ionic7-ssr-basic

Ionic Info

Ionic:

Ionic CLI : 6.12.3 (C:\Users\alex\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : not installed
@angular-devkit/build-angular : 16.2.14
@angular-devkit/schematics : 16.2.14
@angular/cli : 16.2.14
@ionic/angular-toolkit : 9.0.0

Capacitor:

Capacitor CLI : 5.7.8
@capacitor/core : 5.7.8

Utility:

cordova-res : not installed
native-run : 2.0.1

System:

NodeJS : v20.14.0 (C:\Program Files\nodejs\node.exe)
npm : 10.8.1
OS : Windows 10

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions