Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Uncaught TypeError: Cannot read property 'locale' of undefined #127

Open
kgnfth opened this issue Mar 25, 2021 · 0 comments
Open

Uncaught TypeError: Cannot read property 'locale' of undefined #127

kgnfth opened this issue Mar 25, 2021 · 0 comments

Comments

@kgnfth
Copy link

kgnfth commented Mar 25, 2021

i get this error in nuxt 2.15.3 and vue-timeago 5.1.3

import Vue from 'vue'
import VueTimeago from 'vue-timeago'

Vue.use(VueTimeago)

it works if i add the option locale

Vue.use(VueTimeago, {
  name: 'Timeago', // Component name, `Timeago` by default
  locale: 'en', // Default locale
})

i did not add the options because i thought it was the default ??

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant