-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot read properties of undefined (reading 'disable_scroll_handling') #7415
Comments
I don't know if it's possible to use this chunking strategy with SvelteKit. All the |
I also encountered this problem when using
|
Experiencing this too; it crashes the entire webpage. Refreshing fixes it. I don't want to ship code to my users that crashes the first time they load the page though.
|
I'm experiencing the same issue, and Why is this issue scheduled for whenever? How do people make production builds with this not working? |
fixed by #9808 |
Describe the bug
When I use
afterNavigate
,beforeNavigate
orgoto
in a+page
while using the adapter static and the chunking strategy of vite (splitVendorChunkPlugin
) I get an errorUncaught TypeError: Cannot read properties of undefined (reading 'disable_scroll_handling')
at runtime.Note:
Possible related issue #4432 and #1485
Reproduction
git clone https://github.com/peterpeterparker/my-app-yolo
cd my-app-yolo
npm ci
npm run build
npx serve build
Logs
System Info
Severity
serious, but I can work around it
Additional Information
Workarounds:
load
goto
withconst {goto} = await import('$app/navigation')
no direct workaround to use
afterNavigate
. instead I used a custom store in which I track which pages where visitedThe text was updated successfully, but these errors were encountered: