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

NextJs throws error when navigating from 404 page to normal page #551

Closed
1 task done
glassesUSA opened this issue Dec 10, 2023 · 2 comments
Closed
1 task done

NextJs throws error when navigating from 404 page to normal page #551

glassesUSA opened this issue Dec 10, 2023 · 2 comments

Comments

@glassesUSA
Copy link

Checks

  • Not a duplicate.

Version

8.8.4

Description

When navigating from a 404 page to a non 404 page I get this error
image

Steps to Reproduce

  1. go to 404 page
  2. navigate to page that exists

Online Demo

No response

@sadeghbarati
Copy link
Collaborator

https://stackblitz.com/edit/stackblitz-starters-4ohhts

Based on this StackBlitz example you should wrap your html content inside smooth-scrollbar element

Incorrect ❌

<div ref={...}> {/* The element you register smooth-scrollbar on it  */}
    {children}
</div>

Correct✅

<div ref={...}> {/* The element you register smooth-scrollbar on it  */}
    <div> {/* Wrap another element around children  */}
        {children}
    </div>
</div>

@glassesUSA
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants