Uncaught (in promise) TypeError: Cannot read property 'aside' of undefined
samuelhgf opened this issue · 7 comments
Describe the bug
I am receiving this error on the console and the page is not loaded
Uncaught (in promise) TypeError: Cannot read property 'aside' of undefined at Proxy.hasSlot (app.js:16985) at Proxy.render (app.js:19968) at renderComponentRoot (app.js:6300) at componentEffect (app.js:9784) at reactiveEffect (app.js:4644) at effect (app.js:4619) at setupRenderEffect (app.js:9767) at mountComponent (app.js:9726) at processComponent (app.js:9686) at patch (app.js:9313)
To Reproduce
Steps to reproduce the behavior:
Fresh installation of jetstream with inertia and --teams options
Register a user and will be redirect to /dashboard and then the page is not loaded and this error appears at the console
What Preset are you using?
I have the same error
<div v-show="hasSlot('aside')" class="col-lg-3">
<slot name="aside"></slot>
</div>
Here is the problem, I commented it and it worked.
but I'm not sure if it's the right thing to do.
@tsommie I'm using inertia with --teams
Could you see what @amadorrojas wrote above?
@tsommie That portion of the code I attached, I simply commented it, I didn't write anything additional in the code.
@tsommie I'm using inertia with --teams
Could you see what @amadorrojas wrote above?
Yes...this issue will be fixed in the next update.
I removed the !!this.$scopedSlots[ name ]
logic from the hasSlot
function, leaving just !!this.$slots[ name ]
. Thats what caused the error.