Skip to content

Property "$t" was accessed during render but is not defined on instance. #3380

@osahene

Description

@osahene

Version

3.0.7

Reproduction link

https://github.com/osahene/langtest

Steps to reproduce

I am relatively new to vue.
I use vue 3 and javascript, and so I installed vue-i18n with 'vue add i18n' command.
I then entered '{{ $t('message) }} into the 'about.vue' file.
I had an error in the browser console the 'Property "$t" was accessed during render but is not defined on instance.'

What is expected?

The locale translation message should appear (output) in the browser.

What is actually happening?

Nothing showed. The page is rather blank.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions