I'm facing this error when I try to use luxon
in my vuejs2 project.
Uncaught TypeError: Cannot read property 'local' of undefined
I installed the lib using npm, and imported in my component :
import DateTime from 'luxon'
const exmpl = DateTime.local()
Can you guys show me what I did wrong or even propose an other librairie for time manipulation that can work easily with vuejs.
Because DateTime
is not correctly imported.
import { DateTime } from 'luxon'