Answer the question
In order to leave comments, you need to log in
This is expression is not callable when adding a module to Nuxt, why?
Added a project to nuxt, module moment-module , installed according to the manual in readme.md
However, when used in a component ::::
...
computed: {
currentMonth (): string {
return this.$moment(this.viewableDate).format('mmmm')
},
daysInMonth (): number {
return this.$moment(this.viewableDate).daysInMonth()
}
}
...
This expression is not callable.
Not all constituents of type '(() => any) | ComputedOptions<any>' are callable.
Type 'ComputedOptions<any>' has no call signatures.Vetur(2349)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question