You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created my component using vnode h function from Vue. I passed this component to my toast notification. Everything seems to work, except that I cannot access any Vue context inside my component. I am getting this error:
Uncaught (in promise) TypeError: _ctx.$t is not a function
at Proxy._sfc_render (AppNotification.vue:5:80)
at renderComponentRoot (chunk-7VTXWSWY.js?v=c9665c21:8581:17)
at ReactiveEffect.componentUpdateFn [as fn] (chunk-7VTXWSWY.js?v=c9665c21:7403:46)
at ReactiveEffect.run (chunk-7VTXWSWY.js?v=c9665c21:481:19)
at setupRenderEffect (chunk-7VTXWSWY.js?v=c9665c21:7538:5)
at mountComponent (chunk-7VTXWSWY.js?v=c9665c21:7313:7)
at processComponent (chunk-7VTXWSWY.js?v=c9665c21:7266:9)
at patch (chunk-7VTXWSWY.js?v=c9665c21:6782:11)
at mountChildren (chunk-7VTXWSWY.js?v=c9665c21:7014:7)
at mountElement (chunk-7VTXWSWY.js?v=c9665c21:6937:7)
Vue version
3.5.13
Link to minimal reproduction
https://stackblitz.com/~/github.com/martinszeltins/vue-vnode-context
Steps to reproduce
I created my component using vnode
h
function from Vue. I passed this component to my toast notification. Everything seems to work, except that I cannot access any Vue context inside my component. I am getting this error:App.vue
AppNotification.vue
What is expected?
I expected it to work.
What is actually happening?
It throws an error.
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: