kazupon/vue-i18n

this.$t(...) breaks the app when called from a mixin

Open

#449 aberto em 23 de out. de 2018

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (886 forks)batch import
good first issue

Métricas do repositório

Stars
 (7.181 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

App is stuck when I try to call this.$t(...) from within a mixin.

When I inspect this context from the mixin I see this on $t object for arguments and caller:

Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.remoteFunction (<anonymous>:2:14)

I'm using the latest version (8.2.1)

Guia do colaborador