A
A
Alianos2021-03-22 23:02:12
Internationalization and localization
Alianos, 2021-03-22 23:02:12

How to fix Uncaught (in promise) TypeError: _ctx.$t is not a function in vue cli + i18n?

After creating the vue cli project: vuex+router+babel+unit+e2e and adding the vue add i18n command, the HelloI18n.vue file is created. If you copy its contents with a replacement into HelloWorld.vue and run npm run serve in google Chrome, an error will appear

Uncaught (in promise) TypeError: _ctx.$t is not a function

How can this be fixed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question