Closed polyminthe closed 1 year ago
I found the solution.
Just need add :shareAppContext: true,
on .use(Toast,...
and everything work well.
I'm still receiving the same error.
I'm using shareAppContext:true
on my main.js use.
I'm using 1.7.14
version
Somebody fixed that?
It seems like there might be an issue stemming from different versions of internationalization (i18n), as well as the challenge of initializing a new Vue instance within a plugin. Here's my proposed solution:
app.use(toast,
{
onMounted: (_, baseApp) => {
baseApp.use(i18n);
}
}
);
Versions
Describe the bug
Property "$t" was accessed during render but is not defined on instance
Expected behavior
I wish i can use i18n inside the component
Steps to reproduce
Steps:
Your Environment
Additional context