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
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
The release of Ionic 8.5.0 introduced the logLevel option in IonicConfig.
However, the LogLevel enum is not exported by the @ionic/core module.
As a result, we are unable to use LogLevel.OFF (or any other value from LogLevel) when defining the logLevel property in IonicConfig.
We can't configure it
import { IonicConfig, LogLevel } from '@ionic/core'; // Error LogLevel is not exported
export const ionicConfig: IonicConfig = {
logLevel: LogLevel.OFF,
mode: 'md',
spinner: 'lines',
swipeBackEnabled: false,
};
Expected Behavior
The LogLevel enum should be properly exported by @ionic/core, allowing developers to set the logLevel in IonicConfig without any import issues.
import{IonicConfig,LogLevel}from'@ionic/core';constconfig: IonicConfig={logLevel: LogLevel.OFF,// ✅ This should work without any import issuesmode: 'md',spinner: 'lines',swipeBackEnabled: false,};
Steps to Reproduce
Install or upgrade to @ionic/core version 8.5.0.
Import LogLevel from @ionic/core in a TypeScript file.
Define logLevel: LogLevel.OFF inside IonicConfig.
Observe that TypeScript raises an error due to LogLevel not being exported.
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
The release of Ionic 8.5.0 introduced the
logLevel
option inIonicConfig
.However, the
LogLevel
enum is not exported by the@ionic/core
module.As a result, we are unable to use
LogLevel.OFF
(or any other value from LogLevel) when defining the logLevel property inIonicConfig
.We can't configure it
Expected Behavior
The
LogLevel
enum should be properly exported by@ionic/core
, allowing developers to set the logLevel inIonicConfig
without any import issues.Steps to Reproduce
@ionic/core
version 8.5.0.@ionic/core
in a TypeScript file.LogLevel.OFF
inside IonicConfig.Code Reproduction URL
https://stackblitz.com/edit/ykhte9q1?file=src%2Fmain.ts
Ionic Info
Ionic:
Ionic CLI : 7.2.0
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v20.18.3
npm : 11.1.0
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: