Vue context not available when using vnode - _ctx.$t is not a function
#12840
Unanswered
martinszeltins
asked this question in
Help/Questions
Replies: 1 comment 3 replies
-
I don't think this is a core bug. toast(vnode,{
$t: xxx
}) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions