Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: getting Cannot read properties of undefined (reading 'classList') #30081

Open
3 tasks done
da1z opened this issue Dec 12, 2024 · 0 comments
Open
3 tasks done

bug: getting Cannot read properties of undefined (reading 'classList') #30081

da1z opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@da1z
Copy link

da1z commented Dec 12, 2024

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

Cannot read properties of undefined (reading 'classList')
TypeError: Cannot read properties of undefined (reading 'classList')
at isViewVisible

Expected Behavior

no error, redirect to dashboard page

Steps to Reproduce

const DashboardPage = () => {
    return (
        <IonPage>
            <IonContent>
                <IonList>
                    <IonItem routerLink="/non-existing-route/blasss/sss">
                        <IonLabel>Headers</IonLabel>
                    </IonItem>
                </IonList>
            </IonContent>
        </IonPage>
    );
};
export const App1 = () => {
    return (
        <IonApp>
            <IonReactRouter>
                <IonRouterOutlet>
                    <Route path="/dashboard" component={DashboardPage} />
                    <Route render={() => <Redirect to="/dashboard" />} />
                </IonRouterOutlet>
            </IonReactRouter>
        </IonApp>
    );
};

click on Headers btn

Code Reproduction URL

https://stackblitz.com/edit/s31z8pdq?file=src%2Findex.tsx

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/Users/kirylchetyrbak/.nvm/versions/node/v22.2.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 8.4.0

Capacitor:

Capacitor CLI : 6.1.2
@capacitor/android : 6.2.0
@capacitor/core : 6.2.0
@capacitor/ios : 6.2.0

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v22.2.0 (/Users/kirylchetyrbak/.nvm/versions/node/v22.2.0/bin/node)
npm : 10.7.0
OS : macOS Unknown

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant