-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
7.4.2 Cannot read property '_t' of undefined #306
Comments
I have the same problem.
|
The document has been omitted.
add this code ,it will be ok The complete example should be:
|
I also had this problem. I found that if you pass the i18n configuration in an extend it won't work. |
Sam problem here, using NuxtJs as framework. Can reproduce by updating https://github.com/DBAdventure/web package.json to >7.3.2 |
Use
|
I think this problem is caused by this merge: #260 |
This is still happening with unit testing. Any help with that? EDIT: Found a working solution: |
I have the same problem, someone could solve this |
I'm getting error |
Have the same problem with vue-i18n version 8.13. Did copy the example code for Lazy loading from the page. |
The same here, this package documentation is terrible, examples just don't work. |
For anyone finding this issue in the future from a search, this page shows the proper solution: https://lmiller1990.github.io/vue-testing-handbook/mocking-global-objects.html#example-with-vue-i18n |
My problem was I passed $t to $bvModal option. this.$bvModal.msgBoxOk(
messageTxt,
{
title: this.$t("messageTitle"),
centered: true
}
); fix: let messageTitle = this.$t("messageTitle");
this.$bvModal.msgBoxOk(
messageTxt,
{
title: messageTitle,
centered: true
}
); |
Still the same error since years... |
Me too, did you fix it ? |
after delete this line : Vue.locale = () => {}; it works fine for me |
I've had the same problem. I have not used the '_t' property .I found that someone also met the same problem.
Here are some of my configurations
main.js
test.vue
When I use iView's DatePicker and Select tags, it will happen
The text was updated successfully, but these errors were encountered: