-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 Report][3.4.20] Uncaught (in promise) TypeError: Cannot read properties of null (reading 'da') #10415
Comments
This is because the KeepAlive cached vnode is not mounted. so there is nothing to do with KeepAlive.
Without KeepAlive also has the problem see simple reproduction of current issue |
I do not believe so, as my application breaks with this error once updating from 3.4.8 to 3.4.20. Unfortunately I couldn't find an exact reproduction but I think it is somewhat related to using the dynamic route name param in a computed variable that is used in other components, since deleting that specifically causes the error to go away. |
core/packages/runtime-core/src/components/Suspense.ts Lines 375 to 377 in 89de26c
Here is where the error happens to give some context. This if statement gets triggered while |
Fortunately I can confirm that adding the changes done in #10417 fixes the |
Vue version
3.4.20
Link to minimal reproduction
https://stackblitz.com/edit/nuxt-starter-14ccdj
Steps to reproduce
Navigate back and forth
What is expected?
No errors
What is actually happening?
Error that breaks the application and blocks navigation.
System Info
No response
Any additional comments?
This is an attempt to reproduce this error:
TypeError: Cannot read properties of null (reading 'suspenseId')
I have been getting this in my production Nuxt application after upgrading from 3.4.8 to 3.4.20. Unfortunately I could not reproduce the exact error, but this seems to have a similar root cause (component is
undefined
when we try to access one of its properties. I can also confirm that both of these errors go away when downgrading to 3.4.8.This also only appears when you have
keepalive
enabled.The text was updated successfully, but these errors were encountered: