Prerequisites
Ionic Framework Version
Current Behavior
I try to set the mode property on the ion-router-outlet on my ionic/angular project. Anything is fine working on development but once I rund my production build I run into this error
Error: src/app/app.component.html:29:40 - error NG8002: Can't bind to 'mode' since it isn't a known property of 'ion-router-outlet'.
1. If 'ion-router-outlet' is an Angular component and it has 'mode' input, then verify that it is part of this module.
2. If 'ion-router-outlet' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
29 <ion-router-outlet id="main-content" [mode]="mode"></ion-router-outlet>
~~~~~~~~~~~~~
src/app/app.component.ts:13:16
13 templateUrl: 'app.component.html',
~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AppComponent.
Expected Behavior
It seems to me its a @ionic/angular problem, because its a valid property in @ionic/core for the ion-router-outlet
Steps to Reproduce
Just do a clean starter template and try it
<ion-router-outlet [mode]="mode">
or
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.2.3
@angular-devkit/build-angular : 14.1.3
@angular-devkit/schematics : 14.1.2
@angular/cli : 14.1.3
@ionic/angular-toolkit : 7.0.0
Capacitor:
Capacitor CLI : 4.1.0
@capacitor/android : 4.1.0
@capacitor/core : 4.1.0
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.4
native-run : 1.6.0
System:
NodeJS : v16.15.1 (/usr/local/bin/node)
npm : 8.18.0
OS : macOS Monterey
Additional Information
No response
Prerequisites
Ionic Framework Version
Current Behavior
I try to set the
modeproperty on theion-router-outleton myionic/angularproject. Anything is fine working on development but once I rund my production build I run into this errorExpected Behavior
It seems to me its a
@ionic/angularproblem, because its a valid property in@ionic/corefor theion-router-outletSteps to Reproduce
Just do a clean starter template and try it
<ion-router-outlet [mode]="mode">
or
Code Reproduction URL
No response
Ionic Info
Additional Information
No response